override eraseStatic for dialogue

pull/2532/head
Evil Eye 5 years ago
parent 13a0b3bf5a
commit 3d3ffdfcd8

@ -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…
Cancel
Save