From f81d36a90c4dd9a6052a6f14c7d17fca9dbc5b1e Mon Sep 17 00:00:00 2001 From: Krude Date: Fri, 25 Jul 2014 13:11:28 +0200 Subject: [PATCH] Fix Cwcheat code type for address compare 0xD code type took wrong address argument. Hopefully fixes #6624. --- Core/CwCheat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 026fb2a56d..92d205fbca 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -601,7 +601,7 @@ void CWCheatEngine::Run() { } else if (arg >> 28 == 0x4 || arg >> 28 == 0x5 || arg >> 28 == 0x6 || arg >> 28 == 0x7) { int addr1 = GetAddress(comm & 0x0FFFFFFF); - int addr2 = GetAddress(arg & 0xFFFFFFFF); + int addr2 = GetAddress(arg & 0x0FFFFFFF); code = GetNextCode(); if (true) if (Memory::IsValidAddress(addr1) && Memory::IsValidAddress(addr2)) {