*Prevent assertion fail in Unit::_AddAura after creature add to remove list.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-01-22 20:03:47 +01:00
parent 7b3691ac9e
commit 216d32e8a7
9 changed files with 14 additions and 11 deletions

View File

@@ -2357,7 +2357,7 @@ void Map::AddObjectToRemoveList(WorldObject *obj)
{
assert(obj->GetMapId()==GetId() && obj->GetInstanceId()==GetInstanceId());
obj->CleanupsBeforeDelete(); // remove or simplify at least cross referenced links
obj->CleanupsBeforeDelete(false); // remove or simplify at least cross referenced links
i_objectsToRemove.insert(obj);
//sLog.outDebug("Object (GUID: %u TypeId: %u ) added to removing list.",obj->GetGUIDLow(),obj->GetTypeId());