From c17126278e292695257829ce19cddc255c117573 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 24 Aug 2015 17:43:22 +0200 Subject: [PATCH] SV_Physics_Pusher: fix the 'memory corrupted' check Submitted by: Ozkan Sezer --- src/game/g_phys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/g_phys.c b/src/game/g_phys.c index 8ef07385..40e9235e 100644 --- a/src/game/g_phys.c +++ b/src/game/g_phys.c @@ -806,9 +806,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)