mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Crash fix
This commit is contained in:
+1
-1
@@ -7430,7 +7430,7 @@ void Client::ProcessXTargetAutoHaters()
|
||||
auto &haters = GetXTargetAutoMgr()->get_list();
|
||||
for (auto &e : haters) {
|
||||
auto *mob = entity_list.GetMob(e.spawn_id);
|
||||
if (!IsXTarget(mob)) {
|
||||
if (mob && !IsXTarget(mob)) {
|
||||
auto slot = empty_slots.front();
|
||||
empty_slots.pop();
|
||||
XTargets[slot].dirty = true;
|
||||
|
||||
Reference in New Issue
Block a user