From d391b216a6c4f2fcf4b383da742a1a7c1c8c5b7a Mon Sep 17 00:00:00 2001 From: aglab2 Date: Fri, 16 May 2025 09:39:46 +0800 Subject: [PATCH] Core: Fixed recompiler memory overrun for m_TestTimer --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index cffc1df73..754b3eca1 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -9609,7 +9609,7 @@ void CX86RecompilerOps::OverflowDelaySlot(bool TestTimer) if (TestTimer) { - m_Assembler.MoveConstToVariable(&g_System->m_TestTimer, "R4300iOp::m_TestTimer", TestTimer); + m_Assembler.MoveConstByteToVariable(&g_System->m_TestTimer, "R4300iOp::m_TestTimer", TestTimer); } m_Assembler.PushImm32("g_System->CountPerOp()", g_System->CountPerOp());