1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Fix overwriting script records not working

This commit is contained in:
scrawl 2015-01-31 01:44:49 +01:00
parent d1b5956a98
commit bd0a0e64a9

View file

@ -360,6 +360,8 @@ namespace MWWorld
std::pair<typename Static::iterator, bool> inserted = mStatic.insert(std::make_pair(scpt.mId, scpt));
if (inserted.second)
mShared.push_back(&inserted.first->second);
else
inserted.first->second = scpt;
}
template <>
@ -371,6 +373,8 @@ namespace MWWorld
std::pair<typename Static::iterator, bool> inserted = mStatic.insert(std::make_pair(s.mId, s));
if (inserted.second)
mShared.push_back(&inserted.first->second);
else
inserted.first->second = s;
}
template <>