fix(Core/GuardAI): crash when killer is null (#20100)
This commit is contained in:
parent
784e80668d
commit
804769400b
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue