mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix crash from trying to remove the 17th player when removing bots
This commit is contained in:
parent
5ee4680c04
commit
e4226c9ff9
1 changed files with 2 additions and 2 deletions
|
|
@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue