Fix out of bounds iteration in backtrack aimbot
This commit is contained in:
parent
24ff58ffa5
commit
d0165650e2
@ -1262,7 +1262,7 @@ int BestHitbox(CachedEntity *target)
|
|||||||
|
|
||||||
// Then check the rest
|
// Then check the rest
|
||||||
if (*backtrackVischeckAll)
|
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))
|
if (IsEntityVectorVisible(target, (*data).hitboxes[j].center))
|
||||||
return j;
|
return j;
|
||||||
|
Reference in New Issue
Block a user