ref: null: replace same struct type memcpys by assignments

This commit is contained in:
Alibek Omarov 2024-07-31 00:01:31 +03:00
parent fb7854f1ef
commit 9ab0f04ba5
1 changed files with 2 additions and 2 deletions

View File

@ -588,8 +588,8 @@ int EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t *engfuncs,
return 0;
// fill in our callbacks
memcpy( funcs, &gReffuncs, sizeof( ref_interface_t ));
memcpy( &gEngfuncs, engfuncs, sizeof( ref_api_t ));
*funcs = gReffuncs;
gEngfuncs = *engfuncs;
gpGlobals = globals;
return REF_API_VERSION;