Explorar o código

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 <[email protected]>
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
eb89254690
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      scene/main/scene_tree.cpp

+ 2 - 1
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);