mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
fix(Scripts/World): fix nullptr crash (#11770)
This commit is contained in:
@@ -358,7 +358,7 @@ public:
|
||||
events.RepeatEvent(urand(3000, 6000));
|
||||
break;
|
||||
case EVENT_RANGE_CHECK:
|
||||
if (!me->GetVictim()->IsWithinDist2d(me, 60.0f))
|
||||
if (!me->GetVictim() || !me->GetVictim()->IsWithinDist2d(me, 60.0f))
|
||||
{
|
||||
EnterEvadeMode();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user