From 378412a8f534e7715f65a2f752c0007ec36f6cdd Mon Sep 17 00:00:00 2001 From: g-cont Date: Mon, 3 Oct 2011 00:00:00 +0400 Subject: [PATCH] 03 Oct 2011 --- engine/client/cl_remap.c | 1 + engine/client/gl_studio.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; }