From 6cd11db2bc6fe858a825515b6088938bbbc78e7f Mon Sep 17 00:00:00 2001 From: Lighty Date: Fri, 25 May 2018 14:39:46 +0200 Subject: [PATCH] fix --- src/hacks/Aimbot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index ba682c56..6c78bebc 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -459,7 +459,7 @@ bool IsTargetStateGood(CachedEntity *entity) PROF_SECTION(PT_aimbot_targetstatecheck); // Checks for Players - if (entity->m_Type == ENTITY_PLAYER) + if (entity->m_Type() == ENTITY_PLAYER) { // Local player check if (entity == LOCAL_E) @@ -583,7 +583,7 @@ bool IsTargetStateGood(CachedEntity *entity) // Check for buildings } - else if (entity->m_Type == ENTITY_BUILDING) + else if (entity->m_Type() == ENTITY_BUILDING) { // Enabled check if (!(buildings_other || buildings_sentry)) @@ -848,7 +848,7 @@ const Vector &PredictEntity(CachedEntity *entity) return result; // Players - if ((entity->m_Type == ENTITY_PLAYER)) + if ((entity->m_Type() == ENTITY_PLAYER)) { // If using projectiles, predict a vector if (projectile_mode && @@ -875,7 +875,7 @@ const Vector &PredictEntity(CachedEntity *entity) } // Buildings } - else if (entity->m_Type == ENTITY_BUILDING) + else if (entity->m_Type() == ENTITY_BUILDING) { result = GetBuildingPosition(entity); // Other