*Add some debug info to trac reason of assertion fail in Unit destructor.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user