2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

filesystem: allow to init with NULL overrides

This commit is contained in:
Alibek Omarov 2022-12-26 18:58:03 +03:00
parent fe1aba3561
commit c454e37064

View File

@ -2731,7 +2731,7 @@ fs_api_t g_api =
int EXPORT GetFSAPI( int version, fs_api_t *api, fs_globals_t **globals, fs_interface_t *engfuncs )
{
if( !FS_InitInterface( version, engfuncs ))
if( engfuncs && !FS_InitInterface( version, engfuncs ))
return 0;
memcpy( api, &g_api, sizeof( *api ));