forked from teamnwah/openmw-tes3coop
fix for inconsistent case in topic records
This commit is contained in:
parent
235dbdf18e
commit
53c4878d52
1 changed files with 2 additions and 1 deletions
|
@ -448,7 +448,8 @@ namespace CSMWorld
|
||||||
template<typename ESXRecordT, typename IdAccessorT>
|
template<typename ESXRecordT, typename IdAccessorT>
|
||||||
void Collection<ESXRecordT, IdAccessorT>::setRecord (int index, const Record<ESXRecordT>& record)
|
void Collection<ESXRecordT, IdAccessorT>::setRecord (int index, const Record<ESXRecordT>& record)
|
||||||
{
|
{
|
||||||
if (IdAccessorT().getId (mRecords.at (index).get())!=IdAccessorT().getId (record.get()))
|
if (Misc::StringUtils::lowerCase (IdAccessorT().getId (mRecords.at (index).get()))!=
|
||||||
|
Misc::StringUtils::lowerCase (IdAccessorT().getId (record.get())))
|
||||||
throw std::runtime_error ("attempt to change the ID of a record");
|
throw std::runtime_error ("attempt to change the ID of a record");
|
||||||
|
|
||||||
mRecords.at (index) = record;
|
mRecords.at (index) = record;
|
||||||
|
|
Loading…
Reference in a new issue