mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
override eraseStatic for dialogue
This commit is contained in:
parent
13a0b3bf5a
commit
3d3ffdfcd8
1 changed files with 12 additions and 0 deletions
|
@ -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>;
|
||||
|
|
Loading…
Reference in a new issue