SV_Physics_Pusher: fix the 'memory corrupted' check

Submitted by: Ozkan Sezer
This commit is contained in:
Yamagi Burmeister 2015-08-31 18:26:10 +02:00
parent 6d07abecc4
commit 5d8b2ae701

View file

@ -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)