aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
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/scripts
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/scripts')
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index 1e2c6b382b9..d8c880cb827 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -589,7 +589,7 @@ class spell_hun_tame_beast : public SpellScriptLoader
if (!caster->GetPetGUID().IsEmpty())
return SPELL_FAILED_ALREADY_HAVE_SUMMON;
- if (!caster->GetCharmGUID().IsEmpty())
+ if (!caster->GetCharmedGUID().IsEmpty())
return SPELL_FAILED_ALREADY_HAVE_CHARM;
}
else