Checks against MAX_PHYSENT overflow.

This commit is contained in:
Dabb 2001-03-05 11:48:52 +00:00
parent c2cf684118
commit bb39a9252b

View file

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