aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/core/convar/concommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/core/convar/concommand.cpp')
-rw-r--r--NorthstarDLL/core/convar/concommand.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/NorthstarDLL/core/convar/concommand.cpp b/NorthstarDLL/core/convar/concommand.cpp
index 732e0d1f..41f54c76 100644
--- a/NorthstarDLL/core/convar/concommand.cpp
+++ b/NorthstarDLL/core/convar/concommand.cpp
@@ -3,6 +3,7 @@
#include "engine/r2engine.h"
#include "plugins/pluginbackend.h"
+#include "plugins/plugin_abi.h"
#include <iostream>
@@ -151,5 +152,6 @@ ON_DLL_LOAD("engine.dll", ConCommand, (CModule module))
ConCommandConstructor = module.Offset(0x415F60).RCast<ConCommandConstructorType>();
AddMiscConCommands();
- g_pPluginCommunicationhandler->m_sEngineData.ConCommandConstructor = (void*)ConCommandConstructor;
+ g_pPluginCommunicationhandler->m_sEngineData.ConCommandConstructor =
+ reinterpret_cast<PluginConCommandConstructorType>(ConCommandConstructor);
}