engine: cl_frame: fixed segfault in CL_UpdatePositions

This commit is contained in:
SNMetamorph 2022-04-10 15:40:49 +04:00 committed by a1batross
parent 691a305f8e
commit 09b7f22cee
1 changed files with 1 additions and 1 deletions

View File

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