From a5d41b02b79e40df29327931618ee755a06499e4 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sun, 29 Dec 2019 17:34:50 -0600 Subject: [PATCH] More tweaks [skip ci] --- zone/client_process.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zone/client_process.cpp b/zone/client_process.cpp index e75d53d7c..9678d31cd 100644 --- a/zone/client_process.cpp +++ b/zone/client_process.cpp @@ -266,7 +266,11 @@ bool Client::Process() { Mob *mob = itr.second; float distance = DistanceSquared(m_Position, mob->GetPosition()); - if (mob->IsNPC()) { + if (mob->GetID() <= 0) { + continue; + } + + if (mob->IsNPC() || mob->IsClient()) { if (distance <= scan_range) { close_mobs.insert(std::pair(mob->GetID(), mob)); }