mirror of
https://github.com/godotengine/godot.git
synced 2024-12-12 14:14:08 +00:00
Fix crash when executing PopupMenu.new()._submenu_timeout()
This commit is contained in:
parent
a71169c0e0
commit
fb15adfad0
@ -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 New Issue
Block a user