mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7727] Use more simple code for element erase.
This commit is contained in:
parent
995988039b
commit
9ab8c6edd3
2 changed files with 2 additions and 6 deletions
|
|
@ -550,12 +550,8 @@ void InstanceSaveManager::_ResetSave(InstanceSaveHashMap::iterator &itr)
|
|||
Group *group = *(gList.begin());
|
||||
group->UnbindInstance(itr->second->GetMapId(), itr->second->GetDifficulty(), true);
|
||||
}
|
||||
InstanceSaveHashMap::iterator next;
|
||||
next = itr;
|
||||
++next;
|
||||
delete itr->second;
|
||||
m_instanceSaveById.erase(itr);
|
||||
itr = next;
|
||||
m_instanceSaveById.erase(itr++);
|
||||
lock_instLists = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7726"
|
||||
#define REVISION_NR "7727"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue