aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2010-01-18 23:47:26 +0100
committerQAston <none@none>2010-01-18 23:47:26 +0100
commitf5dea61b66a616110cfc82ff640ec448b1efa702 (patch)
tree67b4296a1da2fccec74b030696c6492a4d228886 /src/game/Object.cpp
parent1c5060f4555c1bb58fd6834189d58ce723b59ccf (diff)
*Remove some of no longer needed debug code.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 104fb26e99f..eeb96db5798 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1759,7 +1759,6 @@ TempSummon *Map::SummonCreature(uint32 entry, const Position &pos, SummonPropert
if(!summon->Create(objmgr.GenerateLowGuid(HIGHGUID_UNIT), this, phase, entry, vehId, team, pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation()))
{
- summon->CleanupsBeforeDelete();
delete summon;
return NULL;
}
@@ -1828,7 +1827,6 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
// petentry==0 for hunter "call pet" (current pet summoned if any)
if(!entry)
{
- pet->CleanupsBeforeDelete();
delete pet;
return NULL;
}
@@ -1837,7 +1835,6 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
if(!pet->IsPositionValid())
{
sLog.outError("ERROR: Pet (guidlow %d, entry %d) not summoned. Suggested coordinates isn't valid (X: %f Y: %f)",pet->GetGUIDLow(),pet->GetEntry(),pet->GetPositionX(),pet->GetPositionY());
- pet->CleanupsBeforeDelete();
delete pet;
return NULL;
}
@@ -1847,7 +1844,6 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
if(!pet->Create(objmgr.GenerateLowGuid(HIGHGUID_PET), map, GetPhaseMask(), entry, pet_number))
{
sLog.outError("no such creature entry %u", entry);
- pet->CleanupsBeforeDelete();
delete pet;
return NULL;
}