From eac7a73fb65350706e61a6b315d4abe9840f178b Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Mon, 3 Mar 2025 00:16:42 -0600 Subject: [PATCH] [Crash] Potential crash fix in scan close mobs (#4744) --- zone/entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/entity.cpp b/zone/entity.cpp index 98d237de5..7527272c5 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -2231,7 +2231,7 @@ Raid* EntityList::GetRaidByBotName(const char* name) } } } - + return nullptr; } @@ -2933,7 +2933,7 @@ void EntityList::ScanCloseMobs(Mob *scanning_mob) for (auto &e : mob_list) { auto mob = e.second; - if (mob->GetID() <= 0) { + if (mob && mob->GetID() <= 0) { continue; }