fix the array-bounds warning by setting a upper limit

This commit is contained in:
Alam Arias 2019-05-09 23:10:23 -04:00
parent 58c5979a1e
commit 2f31dd3ab7
1 changed files with 3 additions and 0 deletions

View File

@ -1837,6 +1837,9 @@ void P_CheckTimeLimit(void)
}
}
if (playercount > MAXPLAYERS)
playercount = MAXPLAYERS;
//Sort 'em.
for (i = 1; i < playercount; i++)
{