mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 16:37:17 +00:00
Crash fix
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user