mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-10 06:42:22 +00:00
SV_Physics_Pusher: fix the 'memory corrupted' check
Submitted by: Ozkan Sezer
This commit is contained in:
parent
6d07abecc4
commit
5d8b2ae701
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue