mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
Apply style fix pt4
This commit is contained in:
parent
d93dbd95fe
commit
4727d8846f
87 changed files with 710 additions and 0 deletions
|
|
@ -644,9 +644,13 @@ MapPersistentStateManager::~MapPersistentStateManager()
|
|||
// so we must be prepared for both cases
|
||||
lock_instLists = true;
|
||||
for (PersistentStateMap::iterator itr = m_instanceSaveByInstanceId.begin(); itr != m_instanceSaveByInstanceId.end(); ++itr)
|
||||
{
|
||||
delete itr->second;
|
||||
}
|
||||
for (PersistentStateMap::iterator itr = m_instanceSaveByMapId.begin(); itr != m_instanceSaveByMapId.end(); ++itr)
|
||||
{
|
||||
delete itr->second;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -960,7 +964,9 @@ void MapPersistentStateManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficu
|
|||
unbindList.push_back((DungeonPersistentState *)itr->second);
|
||||
|
||||
for (auto i : unbindList)
|
||||
{
|
||||
i->UnbindThisState();
|
||||
}
|
||||
|
||||
// reset maps, teleport player automaticaly to their homebinds and unload maps
|
||||
MapPersistantStateResetWorker worker;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue