From 5d8b2ae7013a4fc067914c6b7133ca1ca89571a4 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 31 Aug 2015 18:26:10 +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 87743ea..719d6f4 100644 --- a/src/g_phys.c +++ b/src/g_phys.c @@ -800,9 +800,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)