mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-05 07:02:37 +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();
|
auto &haters = GetXTargetAutoMgr()->get_list();
|
||||||
for (auto &e : haters) {
|
for (auto &e : haters) {
|
||||||
auto *mob = entity_list.GetMob(e.spawn_id);
|
auto *mob = entity_list.GetMob(e.spawn_id);
|
||||||
if (!IsXTarget(mob)) {
|
if (mob && !IsXTarget(mob)) {
|
||||||
auto slot = empty_slots.front();
|
auto slot = empty_slots.front();
|
||||||
empty_slots.pop();
|
empty_slots.pop();
|
||||||
XTargets[slot].dirty = true;
|
XTargets[slot].dirty = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user