aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-28 09:48:45 -0600
committermegamage <none@none>2009-03-28 09:48:45 -0600
commita5d34754adef1bdab9645217b7995dc02cf457a4 (patch)
treefa15f0ff8126138ceb6127b4e9b5872e3d1907e9 /src
parentc23ca809df4dc7d4caff2af5012bd81f1833db19 (diff)
*Fix broken pet-related spells.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp4
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);
}