Apply style fix pt4

This commit is contained in:
Antz 2020-01-14 10:26:15 +00:00
parent d93dbd95fe
commit 4727d8846f
87 changed files with 710 additions and 0 deletions

View file

@ -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;