1
0
Fork 0
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:
Stanislav Bas 2015-07-30 14:43:36 +03:00
parent f9b0b7ede5
commit f15adb4e4f

View file

@ -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);
}