Browse Source

library: fix saverestore offsets code from old engine

pull/2/head
mittorn 5 years ago
parent
commit
070272489d
  1. 4
      engine/common/lib_common.c

4
engine/common/lib_common.c

@ -39,8 +39,8 @@ void COM_PushLibraryError( const char *error ) @@ -39,8 +39,8 @@ void COM_PushLibraryError( const char *error )
void *COM_FunctionFromName_SR( void *hInstance, const char *pName )
{
#ifdef XASH_ALLOW_SAVERESTORE_OFFSETS
if( !Q_memcmp( pName, "ofs:",4 ) )
return svgame.dllFuncs.pfnGameInit + Q_atoi(pName + 4);
if( !memcmp( pName, "ofs:",4 ) )
return (byte*)svgame.dllFuncs.pfnGameInit + Q_atoi(pName + 4);
#endif
return COM_FunctionFromName( hInstance, pName );
}

Loading…
Cancel
Save