*Add some debug info to trac reason of assertion fail in Unit destructor.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-01-18 18:42:36 +01:00
parent 844c09fc61
commit 9a7746c9fc
11 changed files with 26 additions and 5 deletions
+3
View File
@@ -1283,7 +1283,10 @@ void GameEventMgr::GameEventSpawn(int16 event_id)
Creature* pCreature = new Creature;
//sLog.outDebug("Spawning creature %u",*itr);
if (!pCreature->LoadFromDB(*itr, map))
{
pCreature->CleanupsBeforeDelete();
delete pCreature;
}
else
map->Add(pCreature);
}