[7727] Use more simple code for element erase. Author: AlexDereka
--HG-- branch : trunk
This commit is contained in:
@@ -555,12 +555,8 @@ void InstanceSaveManager::_ResetSave(InstanceSaveHashMap::iterator &itr)
|
|||||||
Group *group = *(gList.begin());
|
Group *group = *(gList.begin());
|
||||||
group->UnbindInstance(itr->second->GetMapId(), itr->second->GetDifficulty(), true);
|
group->UnbindInstance(itr->second->GetMapId(), itr->second->GetDifficulty(), true);
|
||||||
}
|
}
|
||||||
InstanceSaveHashMap::iterator next;
|
|
||||||
next = itr;
|
|
||||||
++next;
|
|
||||||
delete itr->second;
|
delete itr->second;
|
||||||
m_instanceSaveById.erase(itr);
|
m_instanceSaveById.erase(itr++);
|
||||||
itr = next;
|
|
||||||
lock_instLists = false;
|
lock_instLists = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user