Fix possible crash with backtrack aimbot
This commit is contained in:
parent
f4ec99c4f0
commit
3ae111912c
@ -1342,7 +1342,7 @@ bool VischeckPredictedEntity(CachedEntity *entity)
|
||||
else
|
||||
{
|
||||
auto data = hacks::tf2::backtrack::backtrack.getClosestEntTick(entity, LOCAL_E->m_vecOrigin(), aimbotTickFilter);
|
||||
if (data && IsEntityVectorVisible(entity, data->hitboxes.at(cd.hitbox == -1 ? 0 : cd.hitbox).center, MASK_SHOT))
|
||||
if (data && IsEntityVectorVisible(entity, data->hitboxes.at((cd.hitbox == -1 || cd.hitbox >= 18) ? 0 : cd.hitbox).center, MASK_SHOT))
|
||||
cd.visible = true;
|
||||
else
|
||||
cd.visible = false;
|
||||
|
Reference in New Issue
Block a user