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)