mirror of
https://github.com/godotengine/godot.git
synced 2025-02-08 11:50:41 +00:00
fixed uninitialised variable that was causing menu crash.
This commit is contained in:
parent
90298ddf01
commit
1626ae6421
@ -1860,7 +1860,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||
if (over != top && !top->is_a_parent_of(over)) {
|
||||
|
||||
PopupMenu *popup_menu = Object::cast_to<PopupMenu>(top);
|
||||
MenuButton *popup_menu_parent;
|
||||
MenuButton *popup_menu_parent = NULL;
|
||||
MenuButton *menu_button = Object::cast_to<MenuButton>(over);
|
||||
|
||||
if (popup_menu)
|
||||
|
Loading…
Reference in New Issue
Block a user