aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-12-12 19:19:15 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-12 19:19:15 +0100
commit9951b53808055fc3954bf6cf96207f13e3602781 (patch)
tree1f30356b43725c69c52a8250491cb1132af56d79 /src/server/scripts/EasternKingdoms
parent1a846415493289fc3852e56c82514d85c421267c (diff)
Core/Misc: Fixed some gcc warnings
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
index d8b7660c502..48ecfbe34cc 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
@@ -430,7 +430,7 @@ class npc_eye_of_acherus : public CreatureScript
npc_eye_of_acherusAI(Creature* creature) : ScriptedAI(creature)
{
me->SetDisplayFromModel(0);
- if (Player* owner = me->GetCharmerOrOwner()->ToPlayer())
+ if (me->GetCharmInfo())
me->GetCharmInfo()->InitPossessCreateSpells();
DoCastSelf(SPELL_EYE_VISUAL);