make sure player record stays in place across cleanups

actorid
Marc Zinnschlag 11 years ago
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…
Cancel
Save