aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/SpellHandler.cpp
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-08-25 00:27:37 +0200
committerShauren <shauren.trinity@gmail.com>2021-10-23 00:11:44 +0200
commita5989dcee9150565e7f4b8e3f7a62a414a484a3f (patch)
treee20ec1eeddf0857b1f44fa045a8ed40a72081ab7 /src/server/game/Handlers/SpellHandler.cpp
parentab95c5e9d7b848716e1c9432754f29c65cdb9382 (diff)
Core/Unit: Store charmer and charmed pointers on Unit directly, no more map lookups for Unit::GetCharmer and Unit::GetCharmed
(cherry picked from commit d4ef2529e91043bc719c3238714413fd21c9005c)
Diffstat (limited to 'src/server/game/Handlers/SpellHandler.cpp')
-rw-r--r--src/server/game/Handlers/SpellHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Handlers/SpellHandler.cpp b/src/server/game/Handlers/SpellHandler.cpp
index f0a48c0eda3..55da4c5433b 100644
--- a/src/server/game/Handlers/SpellHandler.cpp
+++ b/src/server/game/Handlers/SpellHandler.cpp
@@ -416,7 +416,7 @@ void WorldSession::HandlePetCancelAuraOpcode(WorldPackets::Spells::PetCancelAura
return;
}
- if (pet != GetPlayer()->GetGuardianPet() && pet != GetPlayer()->GetCharm())
+ if (pet != GetPlayer()->GetGuardianPet() && pet != GetPlayer()->GetCharmed())
{
TC_LOG_ERROR("network", "HandlePetCancelAura: %s is not a pet of player '%s'", packet.PetGUID.ToString().c_str(), GetPlayer()->GetName().c_str());
return;