mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 14:10:11 +01:00
library: fix saverestore offsets code from old engine
This commit is contained in:
parent
538d8a6fb4
commit
070272489d
@ -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…
Reference in New Issue
Block a user