SV_Physics_Pusher: fix the 'memory corrupted' check

Submitted by: Ozkan Sezer
This commit is contained in:
Yamagi Burmeister 2015-08-31 18:48:27 +02:00
parent ee24659ba4
commit 445f266843

View file

@ -751,9 +751,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)