mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-17 23:21:05 +00:00
fix the array-bounds warning by setting a upper limit
This commit is contained in:
parent
571e9be7d8
commit
38f33027a0
1 changed files with 3 additions and 0 deletions
|
@ -1837,6 +1837,9 @@ void P_CheckTimeLimit(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (playercount > MAXPLAYERS)
|
||||
playercount = MAXPLAYERS;
|
||||
|
||||
//Sort 'em.
|
||||
for (i = 1; i < playercount; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue