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
commit b62586c9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)