projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better fix for crash when selecting back
[supertux.git]
/
src
/
gui
/
menu.cpp
diff --git
a/src/gui/menu.cpp
b/src/gui/menu.cpp
index
59ad7f5
..
d6dff24
100644
(file)
--- a/
src/gui/menu.cpp
+++ b/
src/gui/menu.cpp
@@
-326,7
+326,7
@@
Menu::process_input()
case MN_BACK:
MenuManager::instance().pop_menu();
case MN_BACK:
MenuManager::instance().pop_menu();
-
break
;
+
return
;
default:
break;
default:
break;
@@
-362,16
+362,13
@@
Menu::process_input()
case MENU_ACTION_BACK:
MenuManager::instance().pop_menu();
case MENU_ACTION_BACK:
MenuManager::instance().pop_menu();
-
break
;
+
return
;
case MENU_ACTION_NONE:
break;
}
menuaction = MENU_ACTION_NONE;
case MENU_ACTION_NONE:
break;
}
menuaction = MENU_ACTION_NONE;
- if( int(items.size() ) == 0)
- return;
-
assert(active_item < int(items.size()));
}
assert(active_item < int(items.size()));
}