aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2018-06-22 14:24:52 +0200
committerKeader <keader.android@gmail.com>2018-06-22 09:24:52 -0300
commiteb6e240fd1508ff62055e45c97a4534903280e66 (patch)
tree2436c44528380ea01606e24f199ca75a88294eb5
parentaadd58284e94bc70c96244b61c3933db2211fed1 (diff)
TheSlavePens/Ahune: Fix crash (#22070)
Closes: #22069
-rw-r--r--src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp b/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp
index ffcd188c82c..25b8832901e 100644
--- a/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp
+++ b/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp
@@ -737,6 +737,9 @@ public:
void PeriodicTick(AuraEffect const* aurEff)
{
+ if (!GetCaster())
+ return;
+
Creature* caster = GetCaster()->ToCreature();
Player* player = GetTarget()->ToPlayer();