Explorar el Código

Merge pull request #35233 from akien-mga/scenetree-input_event-crash

Fix crash when confirming dialogs with Return key
Rémi Verschelde hace 5 años
padre
commit
e7ee9e01a6
Se han modificado 1 ficheros con 2 adiciones y 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);