Fix crash when executing PopupMenu.new()._submenu_timeout()
This commit is contained in:
parent
a71169c0e0
commit
fb15adfad0
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,8 @@ void PopupMenu::_activate_submenu(int over) {
|
|||
}
|
||||
|
||||
void PopupMenu::_submenu_timeout() {
|
||||
ERR_FAIL_COND(submenu_over == -1);
|
||||
|
||||
if (mouse_over == submenu_over) {
|
||||
_activate_submenu(mouse_over);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue