mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-28 14:53:16 +00:00
Checks against MAX_PHYSENT overflow.
This commit is contained in:
parent
c2cf684118
commit
bb39a9252b
1 changed files with 3 additions and 0 deletions
|
@ -963,6 +963,9 @@ CL_SetSolidEntities (void)
|
|||
continue;
|
||||
if (cl.model_precache[state->modelindex]->hulls[1].firstclipnode
|
||||
|| cl.model_precache[state->modelindex]->clipbox) {
|
||||
|
||||
if(pmove.numphysent>MAX_PHYSENTS) Sys_Error("Physents overflowed\n");
|
||||
|
||||
pmove.physents[pmove.numphysent].model =
|
||||
cl.model_precache[state->modelindex];
|
||||
VectorCopy (state->origin, pmove.physents[pmove.numphysent].origin);
|
||||
|
|
Loading…
Reference in a new issue