From 86e30c992f73c94032299c9748b3883bb67f8faf Mon Sep 17 00:00:00 2001 From: m0nkrel Date: Thu, 21 Jul 2022 16:08:53 +0300 Subject: [PATCH] Hotfix #323 --- cheat-library/src/user/cheat/esp/ESP.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cheat-library/src/user/cheat/esp/ESP.cpp b/cheat-library/src/user/cheat/esp/ESP.cpp index 3da2995..6b0c6ab 100644 --- a/cheat-library/src/user/cheat/esp/ESP.cpp +++ b/cheat-library/src/user/cheat/esp/ESP.cpp @@ -316,10 +316,13 @@ namespace cheat::feature if (entry.m_Name == "Npc" || "AvatarOwn" || "AvatarTeammate") { - auto name = entity->name(); - GetNpcName(name); - esp::render::DrawEntity(name, entity, entry.m_Color, entry.m_ContrastColor); - break; + if (entity->type() == app::EntityType__Enum_1::Avatar || entity->type() == app::EntityType__Enum_1::NPC) + { + std::string name = entity->name(); + GetNpcName(name); + esp::render::DrawEntity(name, entity, entry.m_Color, entry.m_ContrastColor); + break; + } } esp::render::DrawEntity(entry.m_Name, entity, entry.m_Color, entry.m_ContrastColor);