fix the array-bounds warning by setting a upper limit
This commit is contained in:
parent
571e9be7d8
commit
38f33027a0
|
@ -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…
Reference in New Issue