Fix crash from trying to remove the 17th player when removing bots

This commit is contained in:
James R 2021-02-22 18:17:50 -08:00
parent 5ee4680c04
commit e4226c9ff9

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