mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
WAGE: Do not crash on empty submenus
This commit is contained in:
parent
91ef3e6dcd
commit
506748c82f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user