diff --git a/engine/client/cl_remap.c b/engine/client/cl_remap.c index 34d832d5..1dfac1c8 100644 --- a/engine/client/cl_remap.c +++ b/engine/client/cl_remap.c @@ -280,6 +280,7 @@ void CL_AllocRemapInfo( int topcolor, int bottomcolor ) mstudiotexture_t *src, *dst; int i, size; + if( !RI.currententity ) return; i = ( RI.currententity == &clgame.viewent ) ? clgame.maxEntities : RI.currententity->curstate.number; if( !RI.currentmodel || RI.currentmodel->type != mod_studio ) diff --git a/engine/client/gl_studio.c b/engine/client/gl_studio.c index 5fbf61a0..0870d81a 100644 --- a/engine/client/gl_studio.c +++ b/engine/client/gl_studio.c @@ -331,7 +331,7 @@ pfnGetEngineTimes static void pfnGetEngineTimes( int *framecount, double *current, double *old ) { if( framecount ) *framecount = tr.framecount; - if( current ) *current = RI.refdef.time; + if( current ) *current = cl.time; if( old ) *old = cl.oldtime; }