mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'bot-removal-overrun' into 'master'
Fix crash when reducing kartbot See merge request KartKrew/Kart!399
This commit is contained in:
commit
d2213c21a5
1 changed files with 2 additions and 2 deletions
|
|
@ -237,6 +237,8 @@ void K_UpdateMatchRaceBots(void)
|
||||||
|
|
||||||
while (numbots > wantedbots && i > 0)
|
while (numbots > wantedbots && i > 0)
|
||||||
{
|
{
|
||||||
|
i--;
|
||||||
|
|
||||||
if (playeringame[i] && players[i].bot)
|
if (playeringame[i] && players[i].bot)
|
||||||
{
|
{
|
||||||
buf[0] = i;
|
buf[0] = i;
|
||||||
|
|
@ -245,8 +247,6 @@ void K_UpdateMatchRaceBots(void)
|
||||||
|
|
||||||
numbots--;
|
numbots--;
|
||||||
}
|
}
|
||||||
|
|
||||||
i--;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue