SV_Physics_Pusher: fix the 'memory corrupted' check

Submitted by: Ozkan Sezer
This commit is contained in:
Yamagi Burmeister 2015-08-24 17:43:22 +02:00
parent 91245e3b70
commit c17126278e
1 changed files with 2 additions and 2 deletions

View File

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