Browse Source

engine: ref: fix possible null dereference, if client doesn't export studio renderer

pull/2/head
Alibek Omarov 6 years ago committed by GitHub
parent
commit
2c17af4850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      engine/client/ref_common.c

4
engine/client/ref_common.c

@ -167,7 +167,9 @@ static entity_state_t *R_StudioGetPlayerState( int index ) @@ -167,7 +167,9 @@ static entity_state_t *R_StudioGetPlayerState( int index )
static int pfnGetStudioModelInterface( int version, struct r_studio_interface_s **ppinterface, struct engine_studio_api_s *pstudio )
{
return clgame.dllFuncs.pfnGetStudioModelInterface( version, ppinterface, pstudio );
return clgame.dllFuncs.pfnGetStudioModelInterface ?
clgame.dllFuncs.pfnGetStudioModelInterface( version, ppinterface, pstudio ) :
0;
}
static byte *pfnImage_GetPool( void )

Loading…
Cancel
Save