From bc3b9bca6911a606b313d98b4800e1648ad60e7d Mon Sep 17 00:00:00 2001 From: Fabio P <7722100+fp555@users.noreply.github.com> Date: Tue, 12 Dec 2023 16:48:32 +0100 Subject: [PATCH] Options menu fails to clear joypad state on initialization This bug allowed all options to be updated at once if the left or right buttons were pressed on the same frame where the options menu was open --- engine/menus/options_menu.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/menus/options_menu.asm b/engine/menus/options_menu.asm index 728d30ddd6c..685aade41da 100644 --- a/engine/menus/options_menu.asm +++ b/engine/menus/options_menu.asm @@ -11,7 +11,7 @@ DEF NUM_OPTIONS EQU const_value ; 8 _Option: -; BUG: Options menu fails to clear joypad state on initialization (see docs/bugs_and_glitches.md) + call ClearJoypad ld hl, hInMenu ld a, [hl] push af