Crash fix

This commit is contained in:
Michael Cook (mackal) 2017-02-21 18:02:58 -05:00
parent 9a157fa028
commit b423ad0d80

View File

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