2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-10 21:09:07 +01:00

filesystem: replace same struct type memcpys by assignments

This commit is contained in:
Alibek Omarov 2024-07-31 00:02:45 +03:00
parent f6fa085fe4
commit 274f9d5846
2 changed files with 3 additions and 3 deletions

View File

@ -531,9 +531,9 @@ extern "C" void EXPORT *CreateInterface( const char *interface, int *retval )
if( !Q_strcmp( interface, FS_API_CREATEINTERFACE_TAG ))
{
static fs_api_t copy = { 0 }; // return a copy, to disallow overriding
static fs_api_t copy; // return a copy, to disallow overriding
memcpy( &copy, &g_api, sizeof( copy ));
copy = g_api;
if( retval )
*retval = 0;

View File

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