aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/client/debugoverlay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/client/debugoverlay.cpp')
-rw-r--r--NorthstarDLL/client/debugoverlay.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/NorthstarDLL/client/debugoverlay.cpp b/NorthstarDLL/client/debugoverlay.cpp
index e3a9292d..cdb14693 100644
--- a/NorthstarDLL/client/debugoverlay.cpp
+++ b/NorthstarDLL/client/debugoverlay.cpp
@@ -127,13 +127,13 @@ ON_DLL_LOAD_CLIENT_RELIESON("engine.dll", DebugOverlay, ConVar, (CModule module)
{
AUTOHOOK_DISPATCH()
- RenderLine = module.Offset(0x192A70).As<RenderLineType>();
- RenderBox = module.Offset(0x192520).As<RenderBoxType>();
- RenderWireframeBox = module.Offset(0x193DA0).As<RenderBoxType>();
+ RenderLine = module.Offset(0x192A70).RCast<RenderLineType>();
+ RenderBox = module.Offset(0x192520).RCast<RenderBoxType>();
+ RenderWireframeBox = module.Offset(0x193DA0).RCast<RenderBoxType>();
sEngineModule = reinterpret_cast<HMODULE>(module.m_nAddress);
// not in g_pCVar->FindVar by this point for whatever reason, so have to get from memory
- ConVar* Cvar_enable_debug_overlays = module.Offset(0x10DB0990).As<ConVar*>();
+ ConVar* Cvar_enable_debug_overlays = module.Offset(0x10DB0990).RCast<ConVar*>();
Cvar_enable_debug_overlays->SetValue(false);
Cvar_enable_debug_overlays->m_pszDefaultValue = (char*)"0";
Cvar_enable_debug_overlays->AddFlags(FCVAR_CHEAT);