From 2e461e40960cb8d8008562ae4b5a22264eca7794 Mon Sep 17 00:00:00 2001 From: LightCat Date: Fri, 10 Aug 2018 23:02:55 +0200 Subject: [PATCH] woops --- src/hacks/Aimbot.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index 486b62c6..60d09e13 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -107,6 +107,9 @@ bool BacktrackAimbot() if (iBestTarget == -1) return true; int tickcnt = 0; + CachedEntity *tar = ENTITY(iBestTarget); + if (CE_BAD(tar)) + return false; for (auto i : hacks::shared::backtrack::headPositions[iBestTarget]) { if (hacks::shared::backtrack::ValidTick(i, tar))