From 215818ddedc02be3a1a5c2be3912abdbcd29dd72 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 9 Sep 2018 18:28:04 +0200 Subject: detours etc --- internal_rewrite/materialsystem_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal_rewrite/materialsystem_config.cpp') diff --git a/internal_rewrite/materialsystem_config.cpp b/internal_rewrite/materialsystem_config.cpp index d3dc44a..102d09b 100644 --- a/internal_rewrite/materialsystem_config.cpp +++ b/internal_rewrite/materialsystem_config.cpp @@ -2,7 +2,7 @@ #include "settings.hpp" bool __fastcall hooks::material_system( void* ecx, void* edx, IMaterialSystem_Config_t* config, bool forceupdate ) { - static auto original_fn = g_csgo.m_mat_system->get_old_function< decltype( &hooks::material_system ) >( 21 ); + static auto original_fn = material_system_o; config->m_fullbright = g_settings.visuals.fullbright( ); -- cgit v1.2.3