Merge pull request #50924 from timothyqiu/popup-menu-check
[3.x] Fix crash when executing PopupMenu.new()._submenu_timeout()
This commit is contained in:
commit
5e279516bf
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,8 @@ void PopupMenu::_activate_submenu(int over) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PopupMenu::_submenu_timeout() {
|
void PopupMenu::_submenu_timeout() {
|
||||||
|
ERR_FAIL_COND(submenu_over == -1);
|
||||||
|
|
||||||
if (mouse_over == submenu_over) {
|
if (mouse_over == submenu_over) {
|
||||||
_activate_submenu(mouse_over);
|
_activate_submenu(mouse_over);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue