mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
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:
parent
8ecb6e6bd5
commit
e1a10b2d57
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue