diff --git a/apps/openmw/mwworld/store.hpp b/apps/openmw/mwworld/store.hpp index 929ff62a2..a155a3760 100644 --- a/apps/openmw/mwworld/store.hpp +++ b/apps/openmw/mwworld/store.hpp @@ -360,6 +360,8 @@ namespace MWWorld std::pair 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 inserted = mStatic.insert(std::make_pair(s.mId, s)); if (inserted.second) mShared.push_back(&inserted.first->second); + else + inserted.first->second = s; } template <>