mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 12:23:53 +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));
|
||||
if (inserted.second)
|
||||
mShared.push_back(&inserted.first->second);
|
||||
else
|
||||
inserted.first->second = record;
|
||||
|
||||
return RecordId(record.mId, isDeleted);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue