diff --git a/src/server/game/AI/CoreAI/GuardAI.cpp b/src/server/game/AI/CoreAI/GuardAI.cpp index 86c6fc1f0bcb16..4ba087cf807805 100644 --- a/src/server/game/AI/CoreAI/GuardAI.cpp +++ b/src/server/game/AI/CoreAI/GuardAI.cpp @@ -60,6 +60,9 @@ void GuardAI::EnterEvadeMode(EvadeReason /*why*/) void GuardAI::JustDied(Unit* killer) { + if (!killer) + return; + if (Player* player = killer->GetCharmerOrOwnerPlayerOrPlayerItself()) me->SendZoneUnderAttackMessage(player); }