Potential pathing crash fix

This commit is contained in:
Akkadius 2017-10-16 13:46:09 -05:00
parent e80f3c87e9
commit f29fe17496

View File

@ -1298,7 +1298,7 @@ void Mob::AI_Process() {
if (AI_PursueCastCheck()) {
//we did something, so do not process movement.
}
else if (AI_movement_timer->Check())
else if (AI_movement_timer->Check() && target)
{
if (!IsRooted()) {
Log(Logs::Detail, Logs::AI, "Pursuing %s while engaged.", target->GetName());