mirror of
https://github.com/LIJI32/SameBoy.git
synced 2026-10-12 02:06:38 +00:00
Merge pull request #732 from AZero13/cheats
Removal of cheats should be based on cheat_count, not gb_cheats
This commit is contained in:
+1
-1
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user