mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Store::load() overwrites loaded records with the same IDs
This commit is contained in:
parent
f9b0b7ede5
commit
f15adb4e4f
@ -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…
x
Reference in New Issue
Block a user