From 106dc2951d99b0e280e954ae04ff993f470fd819 Mon Sep 17 00:00:00 2001 From: PugsyMAME Date: Sat, 31 Jul 2021 11:14:15 +0100 Subject: [PATCH] Fixed cheat type 52 only working with 1st subtype Fixed typo in ExtCheatRegistersCompare, which made it so that only 52 type 5200 worked, --- src/core/cheats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cheats.cpp b/src/core/cheats.cpp index 818d2ca2c..dd99c7c90 100644 --- a/src/core/cheats.cpp +++ b/src/core/cheats.cpp @@ -1738,7 +1738,7 @@ void CheatCode::Apply() const bool activate_codes = false; const u8 cht_reg_no1 = Truncate8(inst.address & 0xFFu); const u8 cht_reg_no2 = Truncate8((inst.address & 0xFF00u) >> 8); - const u8 sub_type = Truncate8((inst.value32 & 0xFF0000u) >> 16); + const u8 sub_type = Truncate8((inst.first & 0xFF0000u) >> 16); switch (sub_type) {