mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: ref: fix possible null dereference, if client doesn't export studio renderer
This commit is contained in:
parent
7d8b63fd88
commit
2c17af4850
@ -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…
x
Reference in New Issue
Block a user