Skip to content

Commit d05f503

Browse files
committed
correct bug: move prevItem=menuItem after init_system_values
Signed-off-by: Vincent-FK <[email protected]>
1 parent 70aa82f commit d05f503

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

RetroFE/Source/Menu/MenuMode.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,11 +680,10 @@ int MenuMode::launch( )
680680
char fname[MAXPATHLEN];
681681
indexChooseLayout = config->currentLayoutIdx_;
682682
int returnCode = MENU_RETURN_OK;
683-
int prevItem=menuItem;
684683

685684
/// ------ Get System values -------
686685
init_menu_system_values();
687-
686+
int prevItem=menuItem;
688687

689688
/// Save prev key repeat params and set new Key repeat
690689
SDL_GetKeyRepeat(&backup_key_repeat_delay, &backup_key_repeat_interval);

0 commit comments

Comments
 (0)