summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-17 14:53:38 +0100
committerGitHub <noreply@github.com>2020-01-17 14:53:38 +0100
commite7ee9e01a64bb1296431d82f9f1d888a90b6ea1c (patch)
treeb0f594f059d661be20ac48b9bd95d62c8146475f
parenta6f3e1345c4496d4513afbfee35b245f9d53e7d9 (diff)
parenteb8925469082b0f3881ea37a2b71bab9db71f17c (diff)
Merge pull request #35233 from akien-mga/scenetree-input_event-crash
Fix crash when confirming dialogs with Return key
-rw-r--r--scene/main/scene_tree.cpp3
1 files changed, 2 insertions, 1 deletions
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<InputEvent> &p_event) {
input_handled = false;
- const Ref<InputEvent> &ev = p_event;
+ // Don't make const ref unless you can find and fix what caused GH-34691.
+ Ref<InputEvent> ev = p_event;
MainLoop::input_event(ev);