ref: null: replace same struct type memcpys by assignments
This commit is contained in:
parent
fb7854f1ef
commit
9ab0f04ba5
1 changed files with 2 additions and 2 deletions
|
@ -588,8 +588,8 @@ int EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t *engfuncs,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// fill in our callbacks
|
// fill in our callbacks
|
||||||
memcpy( funcs, &gReffuncs, sizeof( ref_interface_t ));
|
*funcs = gReffuncs;
|
||||||
memcpy( &gEngfuncs, engfuncs, sizeof( ref_api_t ));
|
gEngfuncs = *engfuncs;
|
||||||
gpGlobals = globals;
|
gpGlobals = globals;
|
||||||
|
|
||||||
return REF_API_VERSION;
|
return REF_API_VERSION;
|
||||||
|
|
Loading…
Add table
Reference in a new issue