From e1a10b2d5756f49c2cab4a6369f0476c38d95ca6 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 25 Dec 2011 15:32:44 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/premap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/premap.c b/polymer/eduke32/source/premap.c index 570ee9b0d..8c3bd7b95 100644 --- a/polymer/eduke32/source/premap.c +++ b/polymer/eduke32/source/premap.c @@ -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];