Merge branch 'bot-removal-overrun' into 'master'

Fix crash when reducing kartbot

See merge request KartKrew/Kart!399
This commit is contained in:
Sal 2021-02-25 02:34:42 -05:00
commit d2213c21a5

View file

@ -237,6 +237,8 @@ void K_UpdateMatchRaceBots(void)
while (numbots > wantedbots && i > 0)
{
i--;
if (playeringame[i] && players[i].bot)
{
buf[0] = i;
@ -245,8 +247,6 @@ void K_UpdateMatchRaceBots(void)
numbots--;
}
i--;
}
}