From 7e46cf73f66ffbc5ed689a7183e20522c3204bc0 Mon Sep 17 00:00:00 2001 From: asmodai Date: Tue, 27 Jun 2017 02:19:45 +0300 Subject: [PATCH] Fix refactoring mistake --- metamod/src/callback_jit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metamod/src/callback_jit.cpp b/metamod/src/callback_jit.cpp index c693eeb..31d26be 100644 --- a/metamod/src/callback_jit.cpp +++ b/metamod/src/callback_jit.cpp @@ -140,7 +140,7 @@ void CForwardCallbackJIT::naked_main() jecxz(go_next_plugin); jnz(go_next_plugin); - if (&plug == &m_jitdata->plugins->front()) { // init meta globals + if (plug == m_jitdata->plugins->front()) { // init meta globals xor_(eax, eax); mov(dword_ptr[globals + mg_mres], MRES_IGNORED); mov(dword_ptr[globals + mg_prev_mres], eax); // MRES_UNSET @@ -223,7 +223,7 @@ void CForwardCallbackJIT::naked_main() jecxz(go_next_plugin); jnz(go_next_plugin); - if (&plug == &m_jitdata->plugins->front()) { // init meta globals + if (plug == m_jitdata->plugins->front()) { // init meta globals xor_(eax, eax); mov(dword_ptr[globals + mg_mres], MRES_IGNORED); mov(dword_ptr[globals + mg_prev_mres], eax); // MRES_UNSET