Skip to content

Commit

Permalink
Better fix for crash when selecting back
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Aug 12, 2014
1 parent 1a8971c commit 71d9798
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gui/menu.cpp
Expand Up @@ -326,7 +326,7 @@ Menu::process_input()

case MN_BACK:
MenuManager::instance().pop_menu();
break;
return;

default:
break;
Expand Down Expand Up @@ -362,16 +362,13 @@ Menu::process_input()

case MENU_ACTION_BACK:
MenuManager::instance().pop_menu();
break;
return;

case MENU_ACTION_NONE:
break;
}
menuaction = MENU_ACTION_NONE;

if( int(items.size() ) == 0)
return;

assert(active_item < int(items.size()));
}

Expand Down

0 comments on commit 71d9798

Please sign in to comment.