2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-04 13:15:52 +00:00

Fix CStateManager::GetIdListForScript

This commit is contained in:
Jack Andersen 2018-11-07 15:08:11 -10:00
parent 1aab0528f3
commit 4c61119970

View File

@ -1260,7 +1260,10 @@ CStateManager::GetIdListForScript(TEditorId id) const
{ {
auto ret = x890_scriptIdMap.equal_range(id); auto ret = x890_scriptIdMap.equal_range(id);
if (ret.first != x890_scriptIdMap.cend() && ret.first->first != id) if (ret.first != x890_scriptIdMap.cend() && ret.first->first != id)
{
ret.first = x890_scriptIdMap.cend(); ret.first = x890_scriptIdMap.cend();
ret.second = x890_scriptIdMap.cend();
}
return ret; return ret;
} }