projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19e5b71
)
- fixed potential crash
author
Ryan Flegel
<rflegel@gmail.com>
Thu, 13 May 2004 02:40:10 +0000
(
02:40
+0000)
committer
Ryan Flegel
<rflegel@gmail.com>
Thu, 13 May 2004 02:40:10 +0000
(
02:40
+0000)
SVN-Revision: 1150
src/menu.cpp
patch
|
blob
|
history
diff --git
a/src/menu.cpp
b/src/menu.cpp
index
baa7032
..
5b567c5
100644
(file)
--- a/
src/menu.cpp
+++ b/
src/menu.cpp
@@
-480,6
+480,9
@@
Menu::action()
}
menuaction = MENU_ACTION_NONE;
+
+ if (active_item >= item.size())
+ active_item = int(item.size()) - 1;
}
int