Explorar el Código

Fix crash in EditorPropertyArray

kobewi hace 4 años
padre
commit
d80a2a89f0
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      editor/editor_properties_array_dict.cpp

+ 2 - 0
editor/editor_properties_array_dict.cpp

@@ -693,6 +693,8 @@ void EditorPropertyArray::_reorder_button_up() {
 	reorder_mouse_y_delta = 0.0f;
 
 	Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE);
+
+	ERR_FAIL_NULL(reorder_selected_button);
 	reorder_selected_button->warp_mouse(reorder_selected_button->get_size() / 2.0f);
 
 	reorder_selected_element_hbox = nullptr;