mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 21:53:52 +00:00
Store::load() overwrites loaded records with the same IDs
This commit is contained in:
parent
f9b0b7ede5
commit
f15adb4e4f
1 changed files with 2 additions and 0 deletions
|
@ -196,6 +196,8 @@ namespace MWWorld
|
||||||
std::pair<typename Static::iterator, bool> inserted = mStatic.insert(std::make_pair(record.mId, record));
|
std::pair<typename Static::iterator, bool> inserted = mStatic.insert(std::make_pair(record.mId, record));
|
||||||
if (inserted.second)
|
if (inserted.second)
|
||||||
mShared.push_back(&inserted.first->second);
|
mShared.push_back(&inserted.first->second);
|
||||||
|
else
|
||||||
|
inserted.first->second = record;
|
||||||
|
|
||||||
return RecordId(record.mId, isDeleted);
|
return RecordId(record.mId, isDeleted);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue