aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-03-28 02:44:51 -0400
committerNebuleon Fumika2013-03-28 02:44:51 -0400
commit13449ee395e10ed6f6e8ff7c1cc9873d249fb2fb (patch)
tree5147c901873ba867591217ab0196b529b3068a04 /source
parent13971bf9358642a5fad652b558d9be1c1391f2f9 (diff)
downloadsnes9x2005-13449ee395e10ed6f6e8ff7c1cc9873d249fb2fb.tar.gz
snes9x2005-13449ee395e10ed6f6e8ff7c1cc9873d249fb2fb.tar.bz2
snes9x2005-13449ee395e10ed6f6e8ff7c1cc9873d249fb2fb.zip
Fix a crash in the touch handler of the delete saved state submenu.
Diffstat (limited to 'source')
-rw-r--r--source/nds/gui.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index 4564432..db522a1 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -4077,12 +4077,10 @@ u32 menu(u16 *screen, bool8 FirstInvocation)
else if(current_menu == ((main_menu.options + 1)->sub_menu->options + 3)->sub_menu)
{
u32 next_option_num;
- if(inputdata.y <= 33)
+ if(inputdata.y <= 60)
break;
- else if(inputdata.y <= 60)
- next_option_num = 1;
else if(inputdata.y <= 87)
- break;
+ next_option_num = 1;
else if(inputdata.y <= 114)
next_option_num = 2;
else
@@ -4090,7 +4088,7 @@ u32 menu(u16 *screen, bool8 FirstInvocation)
struct _MENU_OPTION_TYPE *next_option = current_menu->options + next_option_num;
- if(next_option_num == 2)
+ if(next_option_num == 1)
{
u32 current_option_val = *(next_option->current_option);
u32 old_option_val = current_option_val;