Browse Source

engine: cl_frame: fixed segfault in CL_UpdatePositions

pull/2/head
SNMetamorph 3 years ago committed by a1batross
parent
commit
09b7f22cee
  1. 2
      engine/client/cl_frame.c

2
engine/client/cl_frame.c

@ -61,7 +61,7 @@ void CL_UpdatePositions( cl_entity_t *ent ) @@ -61,7 +61,7 @@ void CL_UpdatePositions( cl_entity_t *ent )
VectorCopy( ent->curstate.origin, ph->origin );
VectorCopy( ent->curstate.angles, ph->angles );
if( ent->model->type == mod_brush )
if( ent->model && ent->model->type == mod_brush )
ph->animtime = ent->curstate.animtime;
else
ph->animtime = cl.time;

Loading…
Cancel
Save