diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-17 14:53:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-17 14:53:38 +0100 |
commit | e7ee9e01a64bb1296431d82f9f1d888a90b6ea1c (patch) | |
tree | b0f594f059d661be20ac48b9bd95d62c8146475f | |
parent | a6f3e1345c4496d4513afbfee35b245f9d53e7d9 (diff) | |
parent | eb8925469082b0f3881ea37a2b71bab9db71f17c (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.cpp | 3 |
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); |