From 8a1f4545a4e1c96a848866fb5b6185c66db09097 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sun, 2 Mar 2025 23:15:17 -0600 Subject: [PATCH] Update entity.cpp --- 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; }