This commit is contained in:
m0nkrel 2022-07-21 16:08:53 +03:00
parent 8853e81bca
commit 86e30c992f

View File

@ -316,11 +316,14 @@ namespace cheat::feature
if (entry.m_Name == "Npc" || "AvatarOwn" || "AvatarTeammate") if (entry.m_Name == "Npc" || "AvatarOwn" || "AvatarTeammate")
{ {
auto name = entity->name(); if (entity->type() == app::EntityType__Enum_1::Avatar || entity->type() == app::EntityType__Enum_1::NPC)
{
std::string name = entity->name();
GetNpcName(name); GetNpcName(name);
esp::render::DrawEntity(name, entity, entry.m_Color, entry.m_ContrastColor); esp::render::DrawEntity(name, entity, entry.m_Color, entry.m_ContrastColor);
break; break;
} }
}
esp::render::DrawEntity(entry.m_Name, entity, entry.m_Color, entry.m_ContrastColor); esp::render::DrawEntity(entry.m_Name, entity, entry.m_Color, entry.m_ContrastColor);
break; break;