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
committerTreeston <treeston.mmoc@gmail.com>2018-08-25 00:44:33 +0200
commitd4ef2529e91043bc719c3238714413fd21c9005c (patch)
tree08385d090a0ece4bd08fb5062be912cca63b7cc4 /src/server/game/Handlers/SpellHandler.cpp
parentcdf4040f4fce4f1e5ebb33525c4618845605081c (diff)
Core/Unit: Store charmer and charmed pointers on Unit directly, no more map lookups for Unit::GetCharmer and Unit::GetCharmed
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 f1637e4e39a..a26574d787f 100644
--- a/src/server/game/Handlers/SpellHandler.cpp
+++ b/src/server/game/Handlers/SpellHandler.cpp
@@ -505,7 +505,7 @@ void WorldSession::HandlePetCancelAuraOpcode(WorldPacket& recvPacket)
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'", guid.ToString().c_str(), GetPlayer()->GetName().c_str());
return;