From 1626ae642102cb4c5853f7a73fb9441093fc1de2 Mon Sep 17 00:00:00 2001 From: Ibrahn Sahir Date: Sat, 28 Jul 2018 18:05:30 +0100 Subject: [PATCH] fixed uninitialised variable that was causing menu crash. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 573c401290f..e43c2da02d8 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1860,7 +1860,7 @@ void Viewport::_gui_input_event(Ref p_event) { if (over != top && !top->is_a_parent_of(over)) { PopupMenu *popup_menu = Object::cast_to(top); - MenuButton *popup_menu_parent; + MenuButton *popup_menu_parent = NULL; MenuButton *menu_button = Object::cast_to(over); if (popup_menu)