aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-18 01:20:01 -0500
committerNebuleon Fumika2013-01-18 01:20:01 -0500
commitaa54875b056708d98dbff01b58b172de9efc692e (patch)
tree78e57ba7dadb8db96520fa54d89495a14e3cc639 /source
parent51e18ffb2fa40a3dbb28ddb9789bbf0e2665132a (diff)
downloadsnes9x2005-aa54875b056708d98dbff01b58b172de9efc692e.tar.gz
snes9x2005-aa54875b056708d98dbff01b58b172de9efc692e.tar.bz2
snes9x2005-aa54875b056708d98dbff01b58b172de9efc692e.zip
cppcheck: [nds/gui.c:3130]: (error) Array 'tools_options[2]' index 4 out of bounds
cppcheck: [nds/gui.c:3132]: (error) Array 'tools_options[2]' index 4 out of bounds
Diffstat (limited to 'source')
-rw-r--r--source/nds/gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index 6efb59d..d28e2a2 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -3126,10 +3126,11 @@ u32 menu(u16 *screen)
void tools_menu_init()
{
- if(game_config.backward)
+ /* if(game_config.backward)
tools_options[4].option_type &= ~HIDEN_TYPE;
else
- tools_options[4].option_type |= HIDEN_TYPE;
+ tools_options[4].option_type |= HIDEN_TYPE; */
+ // OUT OF BOUNDS MEMORY ACCESS, REENABLE IF NEEDED [NEB]
}
int lastest_game_menu_scroll_value;