diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/nds/gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c index baa6f6b..6efb59d 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -3570,10 +3570,10 @@ u32 menu(u16 *screen) current_option = current_menu->options + current_option_num; - if(current_option -> option_type & HIDEN_TYPE) + if(!current_option) break; - if(!current_option) + if(current_option -> option_type & HIDEN_TYPE) break; if(current_menu->key_function) |