diff options
Diffstat (limited to 'NorthstarDLL/scriptbrowserhooks.cpp')
-rw-r--r-- | NorthstarDLL/scriptbrowserhooks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/scriptbrowserhooks.cpp b/NorthstarDLL/scriptbrowserhooks.cpp index 63f97bb7..1b6adc6a 100644 --- a/NorthstarDLL/scriptbrowserhooks.cpp +++ b/NorthstarDLL/scriptbrowserhooks.cpp @@ -15,9 +15,9 @@ void,, (char* pUrl, char flags)) *bIsOriginOverlayEnabled = bIsOriginOverlayEnabledOriginal;
}
-ON_DLL_LOAD_CLIENT("engine.dll", ScriptExternalBrowserHooks, (HMODULE baseAddress))
+ON_DLL_LOAD_CLIENT("engine.dll", ScriptExternalBrowserHooks, (CModule module))
{
AUTOHOOK_DISPATCH()
- bIsOriginOverlayEnabled = (bool*)baseAddress + 0x13978255;
+ bIsOriginOverlayEnabled = module.Offset(0x13978255).As<bool*>();
}
\ No newline at end of file |