diff --git a/CHANGES b/CHANGES index c629827e9..f45da3efc 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,7 @@ Other fixes: - Libretro: Fix crash changing allowing opposing directions (hhromic) - Qt: Fix race conditions initializing GDB stub - GBA: Set up GPIO mapping on null and ELF ROM regions (fixes mgba.io/i/1481) + - GBA Cheats: Fix value incrementing in CB slide codes (fixes mgba.io/i/1501) Misc: - Qt: Make mute menu option also toggle fast-forward mute (fixes mgba.io/i/1424) - Qt: Show error message if file failed to load diff --git a/src/gba/cheats/codebreaker.c b/src/gba/cheats/codebreaker.c index bca859b68..0ba5c80ea 100644 --- a/src/gba/cheats/codebreaker.c +++ b/src/gba/cheats/codebreaker.c @@ -201,7 +201,7 @@ bool GBACheatAddCodeBreaker(struct GBACheatSet* cheats, uint32_t op1, uint16_t o struct mCheat* incompleteCheat = mCheatListGetPointer(&cheats->d.list, cheats->incompleteCheat); incompleteCheat->repeat = op1 & 0xFFFF; incompleteCheat->addressOffset = op2; - incompleteCheat->operandOffset = 0; + incompleteCheat->operandOffset = op1 >> 16; cheats->incompleteCheat = COMPLETE; return true; }