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

View File

@ -316,10 +316,13 @@ 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)
GetNpcName(name); {
esp::render::DrawEntity(name, entity, entry.m_Color, entry.m_ContrastColor); std::string name = entity->name();
break; 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); esp::render::DrawEntity(entry.m_Name, entity, entry.m_Color, entry.m_ContrastColor);