Skip to content

Commit

Permalink
Fixing a failing when there are no menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Aug 12, 2014
1 parent fd98d18 commit 1a8971c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/menu.cpp
Expand Up @@ -369,6 +369,9 @@ Menu::process_input()
}
menuaction = MENU_ACTION_NONE;

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

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

Expand Down

0 comments on commit 1a8971c

Please sign in to comment.