From 9a7746c9fcfe97edb044bde559b14d09d12f8e13 Mon Sep 17 00:00:00 2001 From: QAston Date: Mon, 18 Jan 2010 18:42:36 +0100 Subject: *Add some debug info to trac reason of assertion fail in Unit destructor. --HG-- branch : trunk --- src/game/Debugcmds.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/Debugcmds.cpp') 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; } -- cgit v1.2.3