mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-03 17:45:32 +00:00
make sure player record stays in place across cleanups
This commit is contained in:
parent
e818d43bc3
commit
ce624e024b
1 changed files with 14 additions and 0 deletions
|
@ -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…
Reference in a new issue