mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: replace same struct type memcpys by assignments
This commit is contained in:
@@ -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( ©, &g_api, sizeof( copy ));
|
||||
copy = g_api;
|
||||
|
||||
if( retval )
|
||||
*retval = 0;
|
||||
|
||||
Reference in New Issue
Block a user