aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
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/scripts
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/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 69b48fde85d..d97e13df132 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -1428,7 +1428,7 @@ class spell_hun_tame_beast : public SpellScriptLoader
if (caster->GetPetGUID())
return SPELL_FAILED_ALREADY_HAVE_SUMMON;
- if (caster->GetCharmGUID())
+ if (caster->GetCharmedGUID())
return SPELL_FAILED_ALREADY_HAVE_CHARM;
}
else