aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/menu.cpp3
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);