From 66af3d2f633d59023a8317a07d640f2b5f82c59a Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Fri, 24 May 2024 20:53:33 -0500 Subject: [PATCH] [Crash] Fix rarer crash in EntityList::MobProcess (#4319) --- zone/entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/entity.cpp b/zone/entity.cpp index 2ccb7dc58..1ba6bd3ea 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -526,7 +526,7 @@ void EntityList::MobProcess() // -- the zone is newly empty and we're allowing mobs to settle if ( numclients > 0 || zone->quest_idle_override || - (s2 && s2->PathWhenZoneIdle()) || + (mob && s2 && s2->PathWhenZoneIdle()) || mob_settle_timer->Enabled() ) { mob_dead = !mob->Process();