mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
make sure player record stays in place across cleanups
This commit is contained in:
parent
e818d43bc3
commit
ce624e024b
@ -292,6 +292,20 @@ namespace MWWorld
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
inline void Store<ESM::NPC>::clearDynamic()
|
||||
{
|
||||
std::map<std::string, ESM::NPC>::iterator iter = mDynamic.begin();
|
||||
|
||||
while (iter!=mDynamic.end())
|
||||
if (iter->first=="player")
|
||||
++iter;
|
||||
else
|
||||
mDynamic.erase (iter++);
|
||||
|
||||
mShared.clear();
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id) {
|
||||
std::string idLower = Misc::StringUtils::lowerCase(id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user