aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/concommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/concommand.cpp')
-rw-r--r--NorthstarDLL/concommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/concommand.cpp b/NorthstarDLL/concommand.cpp
index 616294f5..10621761 100644
--- a/NorthstarDLL/concommand.cpp
+++ b/NorthstarDLL/concommand.cpp
@@ -144,8 +144,8 @@ void RegisterConCommand(
newCommand->m_pCompletionCallback = completionCallback;
}
-ON_DLL_LOAD("engine.dll", ConCommand, (HMODULE baseAddress))
+ON_DLL_LOAD("engine.dll", ConCommand, (CModule module))
{
- ConCommandConstructor = (ConCommandConstructorType)((char*)baseAddress + 0x415F60);
+ ConCommandConstructor = module.Offset(0x415F60).As<ConCommandConstructorType>();
AddMiscConCommands();
} \ No newline at end of file