fix the array-bounds warning by setting a upper limit
This commit is contained in:
parent
58c5979a1e
commit
2f31dd3ab7
|
@ -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