aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2018-06-22 14:24:52 +0200
committerShauren <shauren.trinity@gmail.com>2021-09-29 20:55:23 +0200
commitb3f3dbc663eebc6bd2c34fb9b0f397fb97558fd8 (patch)
tree72fd35e4866b0d9c92d8fcc4aba71c327d312352
parent082194125f11f11bcdbb2d50e1598189aed388c6 (diff)
TheSlavePens/Ahune: Fix crash (#22070)
Closes: #22069 (cherry picked from commit eb6e240fd1508ff62055e45c97a4534903280e66)
-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 2560dfb0e99..60bb51ff7e9 100644
--- a/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp
+++ b/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp
@@ -738,6 +738,9 @@ public:
void PeriodicTick(AuraEffect const* aurEff)
{
+ if (!GetCaster())
+ return;
+
Creature* caster = GetCaster()->ToCreature();
Player* player = GetTarget()->ToPlayer();