aboutsummaryrefslogtreecommitdiff
path: root/src/game/PoolHandler.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2010-01-18 18:42:36 +0100
committerQAston <none@none>2010-01-18 18:42:36 +0100
commit9a7746c9fcfe97edb044bde559b14d09d12f8e13 (patch)
tree320a6b34bd163aa605eb03b7fbb98e6dd248885b /src/game/PoolHandler.cpp
parent844c09fc6153f99247318d521e68a47ba4d7d094 (diff)
*Add some debug info to trac reason of assertion fail in Unit destructor.
--HG-- branch : trunk
Diffstat (limited to 'src/game/PoolHandler.cpp')
-rw-r--r--src/game/PoolHandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/PoolHandler.cpp b/src/game/PoolHandler.cpp
index c2cb8045b81..1774907bcd0 100644
--- a/src/game/PoolHandler.cpp
+++ b/src/game/PoolHandler.cpp
@@ -255,6 +255,7 @@ bool PoolGroup<Creature>::Spawn1Object(uint32 guid)
//sLog.outDebug("Spawning creature %u",guid);
if (!pCreature->LoadFromDB(guid, map))
{
+ pCreature->CleanupsBeforeDelete();
delete pCreature;
return false;
}