Преглед на файлове

Merge pull request #60039 from HookJabs/catch-null-profile_def

Rémi Verschelde преди 3 години
родител
ревизия
4afa610017
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      modules/openxr/editor/openxr_interaction_profile_editor.cpp

+ 2 - 0
modules/openxr/editor/openxr_interaction_profile_editor.cpp

@@ -209,6 +209,8 @@ void OpenXRInteractionProfileEditor::_add_io_path(VBoxContainer *p_container, co
 }
 
 void OpenXRInteractionProfileEditor::_update_interaction_profile() {
+	ERR_FAIL_NULL(profile_def);
+
 	// out with the old...
 	while (main_hb->get_child_count() > 0) {
 		memdelete(main_hb->get_child(0));