diff --git a/src/gb/cheats.c b/src/gb/cheats.c index fa6a5aa7f..3b3a0fdea 100644 --- a/src/gb/cheats.c +++ b/src/gb/cheats.c @@ -98,7 +98,7 @@ static bool GBCheatAddGameGenieLine(struct mCheatSet* cheats, const char* line) value = ROR(value, 2); value |= value >> 24; value ^= 0xBA; - patch->checkValue = value; + patch->checkValue = value & 0xFF; patch->check = true; } else { patch->check = false;