From aa54875b056708d98dbff01b58b172de9efc692e Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Fri, 18 Jan 2013 01:20:01 -0500 Subject: 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 --- source/nds/gui.c | 5 +++-- 1 file 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; -- cgit v1.2.3