Eh, fix out-of-bounds issue in clearfrags() with MAXPLAYERS players.

It was identified with the clearfrags rewriting, but not corrected.

git-svn-id: https://svn.eduke32.com/eduke32@2203 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-12-25 15:32:44 +00:00
parent 8ecb6e6bd5
commit e1a10b2d57
1 changed files with 1 additions and 1 deletions

View File

@ -1726,7 +1726,7 @@ static inline void clearfrags(void)
p->ps->frag = p->ps->fraggedself = 0;
if (i == MAXPLAYERS)
if (i == MAXPLAYERS-1)
break;
p = &g_player[i+1];