fixed bug detecting menu item numbers in main menu

This commit is contained in:
louis 2015-03-14 07:11:13 +01:00
parent a021515385
commit 8e1db50601
2 changed files with 7 additions and 1 deletions

View File

@ -210,5 +210,6 @@ Version 0.3.0
- checking setup conditions for viewelements
- fixed FadeOut bug
- fixed crash when opening and closing main menu consecutively
- fixed crash when opening and closing main menu consecutively
- fixed bug detecting menu item numbers in main menu

View File

@ -240,7 +240,12 @@ void cDisplayMenuItemMainView::SplitMenuText(void) {
}
}
if (found) {
//if current char is not a figure anymore, break
if (!(s >= '0' && s <= '9')) {
//there has to be a space after the menu item number
//plugins with figures in their name are eval :-)
if (s != ' ')
found = false;
doBreak = true;
}
}