summaryrefslogtreecommitdiff
path: root/internal_rewrite/materialsystem_config.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-09 18:28:04 +0200
committernavewindre <boneyaard@gmail.com>2018-09-09 18:28:04 +0200
commit215818ddedc02be3a1a5c2be3912abdbcd29dd72 (patch)
tree16453999d9380f43a6f436e491e63aa58ac7e764 /internal_rewrite/materialsystem_config.cpp
parent620f39df29fed446ab007e03c7b071f635379f1f (diff)
detours etc
Diffstat (limited to 'internal_rewrite/materialsystem_config.cpp')
-rw-r--r--internal_rewrite/materialsystem_config.cpp2
1 files changed, 1 insertions, 1 deletions
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( );