1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:23:53 +00:00

override eraseStatic for dialogue

This commit is contained in:
Evil Eye 2019-09-21 16:24:05 +02:00
parent 13a0b3bf5a
commit 3d3ffdfcd8

View file

@ -1091,6 +1091,18 @@ namespace MWWorld
return RecordId(dialogue.mId, isDeleted);
}
template<>
bool Store<ESM::Dialogue>::eraseStatic(const std::string &id)
{
auto it = mStatic.find(Misc::StringUtils::lowerCase(id));
if (it != mStatic.end() && Misc::StringUtils::ciEqual(it->second.mId, id)) {
mStatic.erase(it);
}
return true;
}
}
template class MWWorld::Store<ESM::Activator>;