*Remove some code which may cause crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-31 14:08:38 -06:00
parent 1fe8050b09
commit b51cea6ce4
5 changed files with 9 additions and 12 deletions
+3 -2
View File
@@ -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;