summaryrefslogtreecommitdiff
path: root/cheats.c
diff options
context:
space:
mode:
Diffstat (limited to 'cheats.c')
-rw-r--r--cheats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cheats.c b/cheats.c
index 17556ca..3594730 100644
--- a/cheats.c
+++ b/cheats.c
@@ -190,7 +190,7 @@ void process_cheats(void)
if(!cheats[i].cheat_active)
continue;
- process_cheat_codebreaker(&cheats[i], 0x3ff ^ io_registers[REG_P1]);
+ process_cheat_codebreaker(&cheats[i], 0x3ff ^ read_ioreg(REG_P1));
}
}