[Crash] Fix rarer crash in EntityList::MobProcess (#4319)

This commit is contained in:
Chris Miles 2024-05-24 20:53:33 -05:00 committed by GitHub
parent 6bcd8fea18
commit 66af3d2f63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();