From eb8925469082b0f3881ea37a2b71bab9db71f17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 17 Jan 2020 12:47:23 +0100 Subject: Fix crash when confirming dialogs with Return key Regression from #34040, apparently making this a const reference introduces issues (not sure why, but previous code worked fine). Fixes #34691. Co-authored-by: dankan1890 --- scene/main/scene_tree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index da147e7112..7c43d8fb14 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -423,7 +423,8 @@ void SceneTree::input_event(const Ref &p_event) { input_handled = false; - const Ref &ev = p_event; + // Don't make const ref unless you can find and fix what caused GH-34691. + Ref ev = p_event; MainLoop::input_event(ev); -- cgit v1.2.3