Skip to content

Commit cc495c2

Browse files
authored
Merge pull request #732 from AZero13/cheats
Removal of cheats should be based on cheat_count, not gb_cheats
2 parents a2a19ae + 6919ace commit cc495c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/cheats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void GB_remove_cheat(GB_gameboy_t *gb, const GB_cheat_t *cheat)
143143

144144
void GB_remove_all_cheats(GB_gameboy_t *gb)
145145
{
146-
while (gb->cheats) {
146+
while (gb->cheat_count) {
147147
GB_remove_cheat(gb, gb->cheats[0]);
148148
}
149149
}

0 commit comments

Comments
 (0)