From 09b7f22cee399e127973b379a80f639e66a3dd04 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Sun, 10 Apr 2022 15:40:49 +0400 Subject: [PATCH] engine: cl_frame: fixed segfault in CL_UpdatePositions --- engine/client/cl_frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/cl_frame.c b/engine/client/cl_frame.c index 70ce6e8e..b86debed 100644 --- a/engine/client/cl_frame.c +++ b/engine/client/cl_frame.c @@ -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;