From d4ef2529e91043bc719c3238714413fd21c9005c Mon Sep 17 00:00:00 2001 From: Treeston Date: Sat, 25 Aug 2018 00:27:37 +0200 Subject: Core/Unit: Store charmer and charmed pointers on Unit directly, no more map lookups for Unit::GetCharmer and Unit::GetCharmed --- src/server/scripts/Spells/spell_hunter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts') 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 -- cgit v1.2.3