From 54964c05b9849e80eeec368bf120b13e4bc69e8f Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 14 Jan 2024 06:55:00 +0200 Subject: [PATCH] fix index name --- dlls/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/client.cpp b/dlls/client.cpp index 69358aa2..65f9e6e8 100644 --- a/dlls/client.cpp +++ b/dlls/client.cpp @@ -1374,8 +1374,8 @@ void StartFrame( void ) { if( !bot_respawn[i].is_used && bot_respawn[i].state == BOT_NEED_TO_RESPAWN) { - bot_respawn[index].state = BOT_IS_RESPAWNING; - bot_respawn[index].is_used = FALSE; // free up this slot + bot_respawn[i].state = BOT_IS_RESPAWNING; + bot_respawn[i].is_used = FALSE; // free up this slot BotCreate( bot_respawn[i].skin, bot_respawn[i].name, bot_respawn[i].skill );