Skip to content

Commit

Permalink
WAGE: Fix crash with empty submenus
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 13, 2016
1 parent a1e9c82 commit d0b60fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/wage/menu.cpp
Expand Up @@ -254,7 +254,8 @@ void Menu::render() {
Design::drawFilledRect(&_gui->_screen, it->bbox, kColorBlack, _patterns, 1);
color = kColorWhite;

renderSubmenu(it);
if (it->subitems.size())
renderSubmenu(it);
}

_font->drawString(&_gui->_screen, it->name, it->bbox.left + kMenuLeftMargin, it->bbox.top, it->bbox.width(), color);
Expand Down

0 comments on commit d0b60fe

Please sign in to comment.