diff options
author | Eugene Sandulenko | 2016-01-12 19:41:52 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-12 19:41:52 +0100 |
commit | 506748c82f70e809d5a1cd2270164506ca1fbb06 (patch) | |
tree | 12ea8d3469fae538ce45ddf9d975f989253ded5e /engines/wage | |
parent | 91ef3e6dcde78456bec624a82f28119c122aa08b (diff) | |
download | scummvm-rg350-506748c82f70e809d5a1cd2270164506ca1fbb06.tar.gz scummvm-rg350-506748c82f70e809d5a1cd2270164506ca1fbb06.tar.bz2 scummvm-rg350-506748c82f70e809d5a1cd2270164506ca1fbb06.zip |
WAGE: Do not crash on empty submenus
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/menu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp index 2ed41bc510..bae8d76be8 100644 --- a/engines/wage/menu.cpp +++ b/engines/wage/menu.cpp @@ -266,6 +266,9 @@ void Menu::render() { void Menu::renderSubmenu(MenuItem *menu) { Common::Rect *r = &menu->subbbox; + if (r->width() == 0 || r->height() == 0) + return; + Design::drawFilledRect(&_gui->_screen, *r, kColorWhite, _patterns, 1); Design::drawRect(&_gui->_screen, *r, 1, kColorBlack, _patterns, 1); |