From d0165650e266e49b6a87a80f661cfd607fe1cfe1 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sat, 1 Aug 2020 12:37:29 +0200 Subject: [PATCH] Fix out of bounds iteration in backtrack aimbot --- src/hacks/Aimbot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index ead5926b..264a42a8 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -1262,7 +1262,7 @@ int BestHitbox(CachedEntity *target) // Then check the rest if (*backtrackVischeckAll) - for (int j = head; j < foot_R + 1; j++) + for (int j = head; j < foot_R; j++) { if (IsEntityVectorVisible(target, (*data).hitboxes[j].center)) return j;