Bugfix: turning the PPU off during OAM mode made the OAM bug persist while the LCD is off

This commit is contained in:
Lior Halphon 2018-03-24 02:58:37 +03:00
parent d343152fca
commit 5cb74fb684
1 changed files with 2 additions and 0 deletions

View File

@ -287,6 +287,8 @@ void GB_lcd_off(GB_gameboy_t *gb)
gb->window_disabled_while_active = false;
gb->current_line = 0;
gb->ly_for_comparison = 0;
gb->oam_search_index = 0;
}
static void add_object_from_index(GB_gameboy_t *gb, unsigned index)