Merge pull request #2460 from PugsyMAME/master

Fixed cheat type 52 only working with 1st subtype
This commit is contained in:
Connor McLaughlin 2021-08-07 11:35:58 +10:00 committed by GitHub
commit 66cfd98685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1738,7 +1738,7 @@ void CheatCode::Apply() const
bool activate_codes = false; bool activate_codes = false;
const u8 cht_reg_no1 = Truncate8(inst.address & 0xFFu); const u8 cht_reg_no1 = Truncate8(inst.address & 0xFFu);
const u8 cht_reg_no2 = Truncate8((inst.address & 0xFF00u) >> 8); 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) switch (sub_type)
{ {