diff options
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/macmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp index 6169b3e3cd..a78fa2e6ce 100644 --- a/graphics/macgui/macmenu.cpp +++ b/graphics/macgui/macmenu.cpp @@ -249,7 +249,7 @@ void Menu::createSubMenuFromString(int id, const char *str) { Common::String tmpitem(item); tmpitem.trim(); - if (tmpitem[0] == '(') { + if (tmpitem.size() > 0 && tmpitem[0] == '(') { enabled = false; for (uint j = 0; j < item.size(); j++) |