projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd98d18
)
Fixing a failing when there are no menu items
author
Tobias Markus
<tobbi@mozilla-uk.org>
Tue, 12 Aug 2014 22:24:19 +0000
(
00:24
+0200)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Tue, 12 Aug 2014 22:24:19 +0000
(
00:24
+0200)
src/gui/menu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/menu.cpp
b/src/gui/menu.cpp
index
d26a782
..
59ad7f5
100644
(file)
--- a/
src/gui/menu.cpp
+++ b/
src/gui/menu.cpp
@@
-369,6
+369,9
@@
Menu::process_input()
}
menuaction = MENU_ACTION_NONE;
+ if( int(items.size() ) == 0)
+ return;
+
assert(active_item < int(items.size()));
}