From b51cea6ce48295c3ebea9b2340d76a4ab147a6e5 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 31 Mar 2009 14:08:38 -0600 Subject: *Remove some code which may cause crash. --HG-- branch : trunk --- src/game/Player.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game/Player.cpp') 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(this)->SetPetGUID(0); + //there may be a guardian in slot + //sLog.outError("Player::GetPet: Pet %u not exist.",GUID_LOPART(pet_guid)); + //const_cast(this)->SetPetGUID(0); } return NULL; -- cgit v1.2.3