[8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
* Create Gameobject version to make GO with owner more safe for remove
--HG--
branch : trunk
This commit is contained in:
1 parent
9a2588a454
commit
111dac5f94
14 files changed
+20
-23
No files matched your search
@@ -1609,8 +1609,6 @@ bool BattleGround::DelCreature(uint32 type)
|
||||
sLog.outError("Can't find creature guid: %u",GUID_LOPART(m_BgCreatures[type]));
|
||||
return false;
|
||||
}
|
||||
//TODO: only delete creature after not in combat
|
||||
cr->CleanupsBeforeDelete();
|
||||
cr->AddObjectToRemoveList();
|
||||
m_BgCreatures[type] = 0;
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user