aboutsummaryrefslogtreecommitdiff
path: root/src/game/Debugcmds.cpp
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-01-18 18:55:40 +0100
committerTrazom62 <none@none>2010-01-18 18:55:40 +0100
commit17d407f347ff67736a79612c81fced98cb4fc114 (patch)
tree5ad72dd95c49e246b998ab6eb507db7ca58fe167 /src/game/Debugcmds.cpp
parentfaf845b6f2234690d5b20f54443f1a47c31cf503 (diff)
parent9a7746c9fcfe97edb044bde559b14d09d12f8e13 (diff)
merge
--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;
}