diff options
author | megamage <none@none> | 2009-03-28 09:48:45 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-28 09:48:45 -0600 |
commit | a5d34754adef1bdab9645217b7995dc02cf457a4 (patch) | |
tree | fa15f0ff8126138ceb6127b4e9b5872e3d1907e9 /src | |
parent | c23ca809df4dc7d4caff2af5012bd81f1833db19 (diff) |
*Fix broken pet-related spells.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 53ee72a121e..7b97c74172f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8258,11 +8258,11 @@ Guardian* Unit::GetGuardianPet() const { if(uint64 pet_guid = GetPetGUID()) { - if(Creature* pet = ObjectAccessor::GetCreature(*this, pet_guid)) + if(Creature* pet = ObjectAccessor::GetCreatureOrPetOrVehicle(*this, pet_guid)) if(pet->HasSummonMask(SUMMON_MASK_GUARDIAN)) return (Guardian*)pet; - sLog.outError("Player::GetPet: Pet %u not exist.",GUID_LOPART(pet_guid)); + sLog.outError("Unit::GetGuardianPet: Pet %u not exist.",GUID_LOPART(pet_guid)); const_cast<Unit*>(this)->SetPetGUID(0); } |