1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00

Merge pull request #20546 from ibrahn/fix-menu-branch-on-uninit

fixed uninitialised variable that was causing menu crash.
This commit is contained in:
Hein-Pieter van Braam
2018-07-29 04:20:45 +02:00
committed by GitHub

View File

@@ -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)