mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-03 10:33:52 +00:00
Crash fix
This commit is contained in:
parent
9a157fa028
commit
b423ad0d80
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user