engine: cl_frame: fixed segfault in CL_UpdatePositions
This commit is contained in:
parent
691a305f8e
commit
09b7f22cee
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue