From fcda1012241369a283faa12070f562511f39aa97 Mon Sep 17 00:00:00 2001 From: jeefo Date: Thu, 25 May 2023 00:07:03 +0300 Subject: [PATCH] aim: fix: check last enemy not current enemy in prediction --- src/botlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/botlib.cpp b/src/botlib.cpp index 108b0a7..bb4028a 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -1562,7 +1562,7 @@ void Bot::syncUpdatePredictedIndex () { auto currentNodeIndex = m_currentNodeIndex; auto botOrigin = pev->origin; - if (lastEnemyOrigin.empty () || !vistab.isReady () || !util.isAlive (m_enemy)) { + if (lastEnemyOrigin.empty () || !vistab.isReady () || !util.isAlive (m_lastEnemy)) { wipePredict (); return; }