aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.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/BattleGround.cpp
parent844c09fc6153f99247318d521e68a47ba4d7d094 (diff)
*Add some debug info to trac reason of assertion fail in Unit destructor.
--HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r--src/game/BattleGround.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index aebe9bd28b1..426f5de6655 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -1590,6 +1590,7 @@ Creature* BattleGround::AddCreature(uint32 entry, uint32 type, uint32 teamval, f
Creature* pCreature = new Creature;
if (!pCreature->Create(objmgr.GenerateLowGuid(HIGHGUID_UNIT), map, PHASEMASK_NORMAL, entry, 0, teamval, x, y, z, o))
{
+ pCreature->CleanupsBeforeDelete();
sLog.outError("Can't create creature entry: %u",entry);
delete pCreature;
return NULL;