From c8fdea621688e07740fef7478dc766b5c5a3b8a4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 3 Aug 2005 16:33:52 +0000 Subject: [PATCH] Fixed bug found by T(+)rget --- amxmodx/amx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amxmodx/amx.cpp b/amxmodx/amx.cpp index 8a56c814..baf95267 100755 --- a/amxmodx/amx.cpp +++ b/amxmodx/amx.cpp @@ -1081,7 +1081,9 @@ int AMXAPI amx_InitJIT(AMX *amx, void *reloc_table, void *native_code) /* JIT rulz! (TM) */ /* MP: added check for correct compilation */ - if ((res = asm_runJIT(amx->base, reloc_table, native_code)) != 0) { + //Fixed bug (thanks T(+)rget) + if ((res = asm_runJIT(amx->base, reloc_table, native_code)) == 0) + { /* update the required memory size (the previous value was a * conservative estimate, now we know the exact size) */