From 84743bd65c2378cc3880e1659aae9a34bf4c4df6 Mon Sep 17 00:00:00 2001 From: In-line Date: Wed, 28 Jun 2017 21:05:53 +0400 Subject: [PATCH] Move fprintf_ptr under JIT_DEBUG_FILE define --- metamod/src/callback_jit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metamod/src/callback_jit.cpp b/metamod/src/callback_jit.cpp index 31d26be..489836e 100644 --- a/metamod/src/callback_jit.cpp +++ b/metamod/src/callback_jit.cpp @@ -320,12 +320,12 @@ void CForwardCallbackJIT::jit_debug(const char* format, ...) char* memory_leak = Q_strdup(string); // yes, I'm lazy static size_t print_ptr = size_t(&printf); - static size_t fprint_ptr = size_t(&mdebug_to_file); pushad(); push(size_t(memory_leak)); call(dword_ptr[size_t(&print_ptr)]); #ifdef JIT_DEBUG_FILE + static size_t fprint_ptr = size_t(&mdebug_to_file); call(dword_ptr[size_t(&fprint_ptr)]); #endif add(esp, 4);