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)