diff options
| author | JustSomePwner <crotchyalt@gmail.com> | 2018-09-01 14:32:14 +0200 |
|---|---|---|
| committer | JustSomePwner <crotchyalt@gmail.com> | 2018-09-01 14:32:14 +0200 |
| commit | e2350a9ef73817f1f364b6223f9d4d9d5c6235a8 (patch) | |
| tree | 9c752b5e0f04e638fba947fefa0fd00badf3f92b /internal_rewrite/draw_small_entities.cpp | |
| parent | 7afd0eaf52abe9e0bc8c8b5e986e90267f83b4e2 (diff) | |
| parent | beb5515757c0e653adc33f181184fe3791ca0a6b (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'internal_rewrite/draw_small_entities.cpp')
| -rw-r--r-- | internal_rewrite/draw_small_entities.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal_rewrite/draw_small_entities.cpp b/internal_rewrite/draw_small_entities.cpp index 59f3ff0..71532b4 100644 --- a/internal_rewrite/draw_small_entities.cpp +++ b/internal_rewrite/draw_small_entities.cpp @@ -8,7 +8,11 @@ void __fastcall hooks::draw_small_entities( void* ecx, void* edx, bool state ) { static auto draw_small_entities_o = g_csgo.m_clientleaf->get_old_function< decltype( &hooks::draw_small_entities ) >( 39 ); +#ifdef HEADER_MODULE + static auto ret_addr = g_header.patterns.draw_small_entities_retaddr + 6; +#else static auto ret_addr = pattern::first_code_match< void* >( g_csgo.m_chl.dll( ), "FF 90 ? ? ? ? FF 15 ? ? ? ? 84 C0 74 28", 6 ); +#endif // please shoot me // i have given up |
