aboutsummaryrefslogtreecommitdiff
path: root/src/game/Debugcmds.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/Debugcmds.cpp
parent844c09fc6153f99247318d521e68a47ba4d7d094 (diff)
*Add some debug info to trac reason of assertion fail in Unit destructor.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Debugcmds.cpp')
-rw-r--r--src/game/Debugcmds.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Debugcmds.cpp b/src/game/Debugcmds.cpp
index ff720872f6b..372afa95d62 100644
--- a/src/game/Debugcmds.cpp
+++ b/src/game/Debugcmds.cpp
@@ -794,6 +794,7 @@ bool ChatHandler::HandleDebugSpawnVehicle(const char* args)
if(!v->Create(objmgr.GenerateLowGuid(HIGHGUID_VEHICLE), map, m_session->GetPlayer()->GetPhaseMask(), entry, id, m_session->GetPlayer()->GetTeam(), x, y, z, o))
{
+ v->CleanupsBeforeDelete();
delete v;
return false;
}