From 30bba4ceb4deaf617939153a5e5899eb67f36f7a Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Thu, 13 Jul 2017 10:39:28 +0300 Subject: [PATCH] fix rare aimbot-related segv crash --- src/hacks/Aimbot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index f5a36435..1c3c8977 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -282,7 +282,7 @@ CachedEntity* RetrieveBestTarget(bool aimkey_state) { // We dont have a target currently so we must find one, reset statuses foundTarget = false; - target_last = -1; + target_last = nullptr; // Book keeping vars float target_highest_score, scr; @@ -887,7 +887,7 @@ CachedEntity* CurrentTarget() { // Used for when you join and leave maps to reset aimbot vars void Reset() { - target_last = -1; + target_last = nullptr; projectile_mode = false; }