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)