Fix out of bounds iteration in backtrack aimbot

This commit is contained in:
BenCat07 2020-08-01 12:37:29 +02:00 committed by TotallyNotElite
parent 24ff58ffa5
commit d0165650e2

View File

@ -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;