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