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; }