Merge pull request #732 from AZero13/cheats

Removal of cheats should be based on cheat_count, not gb_cheats
This commit is contained in:
Lior Halphon
2025-11-14 20:40:36 +02:00
committed by GitHub
+1 -1
View File
@@ -143,7 +143,7 @@ void GB_remove_cheat(GB_gameboy_t *gb, const GB_cheat_t *cheat)
void GB_remove_all_cheats(GB_gameboy_t *gb)
{
while (gb->cheats) {
while (gb->cheat_count) {
GB_remove_cheat(gb, gb->cheats[0]);
}
}