From 7d5c867bfd55ea1e78938355ce68be2a2dee800c Mon Sep 17 00:00:00 2001 From: Denis Kopyrin Date: Thu, 29 May 2025 14:13:40 +0800 Subject: [PATCH] Core: Fixed recompiler memory overrun for m_TestTimer (#2480) --- .../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());