diff options
author | Nebuleon Fumika | 2013-01-16 03:17:33 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2013-01-16 03:17:33 -0500 |
commit | 582b3a23ceeb9e894b0f1d43de09e97a91a4d3b9 (patch) | |
tree | 602beb4f5b5553a1d672414209212a9458d81732 /source | |
parent | 95a1f4c0a337a57e6b2d28743a5641f9e1858122 (diff) | |
download | snes9x2005-582b3a23ceeb9e894b0f1d43de09e97a91a4d3b9.tar.gz snes9x2005-582b3a23ceeb9e894b0f1d43de09e97a91a4d3b9.tar.bz2 snes9x2005-582b3a23ceeb9e894b0f1d43de09e97a91a4d3b9.zip |
Initialise current_menu to NULL in menu(u16). Otherwise, choose_menu(&main_menu) tries to call the end_function of a menu that's a random pointer.
Diffstat (limited to 'source')
-rw-r--r-- | source/nds/gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c index faaeeec..c3d5043 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -1665,9 +1665,9 @@ u32 menu(u16 *screen) // ^ Holds the index inside Cheat, as a number in an ASCIIZ string char* cheat_data_ptr[MAX_CHEATS_T]; - MENU_TYPE *current_menu; - MENU_OPTION_TYPE *current_option; - MENU_OPTION_TYPE *display_option; + MENU_TYPE *current_menu = NULL; + MENU_OPTION_TYPE *current_option = NULL; + MENU_OPTION_TYPE *display_option = NULL; u32 current_option_num; // u32 parent_option_num; |