diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-17 12:47:23 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-17 12:47:23 +0100 |
commit | eb8925469082b0f3881ea37a2b71bab9db71f17c (patch) | |
tree | 5188a717dc9384a0864f839aa100b76e45d36702 /scene/main/scene_tree.cpp | |
parent | 0aefec24548edbb96e4991ede4465473e0c225e1 (diff) |
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 <mewuidev2@gmail.com>
Diffstat (limited to 'scene/main/scene_tree.cpp')
-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); |