mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
engine: cl_frame: fixed segfault in CL_UpdatePositions
This commit is contained in:
parent
691a305f8e
commit
09b7f22cee
@ -61,7 +61,7 @@ void CL_UpdatePositions( cl_entity_t *ent )
|
|||||||
VectorCopy( ent->curstate.origin, ph->origin );
|
VectorCopy( ent->curstate.origin, ph->origin );
|
||||||
VectorCopy( ent->curstate.angles, ph->angles );
|
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;
|
ph->animtime = ent->curstate.animtime;
|
||||||
else
|
else
|
||||||
ph->animtime = cl.time;
|
ph->animtime = cl.time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user