aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-31 14:08:38 -0600
committermegamage <none@none>2009-03-31 14:08:38 -0600
commitb51cea6ce48295c3ebea9b2340d76a4ab147a6e5 (patch)
tree890561d68855a87936d8b4c8a0de6b4c0e20e8bc /src/game/Player.cpp
parent1fe8050b09d2d522ded639d4dacb2f354603b596 (diff)
*Remove some code which may cause crash.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 1b885c99874..51a68dec66d 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -16493,8 +16493,9 @@ Pet* Player::GetPet() const
if(Pet* pet = ObjectAccessor::GetPet(pet_guid))
return pet;
- sLog.outError("Player::GetPet: Pet %u not exist.",GUID_LOPART(pet_guid));
- const_cast<Player*>(this)->SetPetGUID(0);
+ //there may be a guardian in slot
+ //sLog.outError("Player::GetPet: Pet %u not exist.",GUID_LOPART(pet_guid));
+ //const_cast<Player*>(this)->SetPetGUID(0);
}
return NULL;