mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
fix the array-bounds warning by setting a upper limit
This commit is contained in:
parent
9163a05192
commit
d44a5d1013
1 changed files with 3 additions and 0 deletions
|
|
@ -1837,6 +1837,9 @@ void P_CheckTimeLimit(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (playercount > MAXPLAYERS)
|
||||||
|
playercount = MAXPLAYERS;
|
||||||
|
|
||||||
//Sort 'em.
|
//Sort 'em.
|
||||||
for (i = 1; i < playercount; i++)
|
for (i = 1; i < playercount; i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue