From ea4d9c0d9e3339c96b94f13bbbfc1318bb6b03f9 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Wed, 12 Aug 2015 14:05:14 +0200 Subject: Core/Misc: Remove unneeded ToCreature() casts Remove some ToCreature() casts not needed anymore after 1ee90e1022a235859316e55356ea8a3d2f456c9b changes that moved IsPet(), IsTotem(), IsSummon(), IsGuardian(), IsHunterPet() and IsVehicle() from Creature to Unit --- src/server/scripts/Spells/spell_pet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Spells') diff --git a/src/server/scripts/Spells/spell_pet.cpp b/src/server/scripts/Spells/spell_pet.cpp index 764debc1a6b..a0664a2ea00 100644 --- a/src/server/scripts/Spells/spell_pet.cpp +++ b/src/server/scripts/Spells/spell_pet.cpp @@ -1367,7 +1367,7 @@ public: if (GetCaster()->GetOwner()->ToPlayer()) { // Pet's base damage changes depending on happiness - if (GetCaster()->IsPet() && GetCaster()->ToPet()->IsHunterPet()) + if (GetCaster()->IsPet() && GetCaster()->IsHunterPet()) { switch (GetCaster()->ToPet()->GetHappinessState()) { -- cgit v1.2.3