From a32778260f98d6c80c501042bdf7aa174b4253ac Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 31 Aug 2015 18:36:54 +0200 Subject: [PATCH] SV_Physics_Pusher: fix the 'memory corrupted' check Submitted by: Ozkan Sezer --- src/g_phys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_phys.c b/src/g_phys.c index c662566..c501e18 100644 --- a/src/g_phys.c +++ b/src/g_phys.c @@ -793,9 +793,9 @@ SV_Physics_Pusher(edict_t *ent) } } - if (pushed_p > &pushed[MAX_EDICTS]) + if (pushed_p > &pushed[MAX_EDICTS-1]) { - gi.error("pushed_p > &pushed[MAX_EDICTS], memory corrupted"); + gi.error("pushed_p > &pushed[MAX_EDICTS-1], memory corrupted"); } if (part)