mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-04 02:15:33 +00:00
Merge pull request #2532 from Assumeru/undefined
Fix undefined behaviour
This commit is contained in:
commit
0ff8e83a39
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