fix(Core): Crash on random movement SAI (#13862)
This commit is contained in:
parent
d87ff61f96
commit
e0803fb0cb
1 changed files with 1 additions and 1 deletions
|
|
@ -1950,7 +1950,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
|||
}
|
||||
}
|
||||
|
||||
if (!foundTarget && me && IsCreature(me))
|
||||
if (!foundTarget && me && IsCreature(me) && me->IsAlive())
|
||||
{
|
||||
if (e.action.moveRandom.distance)
|
||||
me->GetMotionMaster()->MoveRandom(float(e.action.moveRandom.distance));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue