Kaynağa Gözat

fix set_current_tab: Indexp_current=-1 out of size

Omar Al Halabi 7 yıl önce
ebeveyn
işleme
cb86f6fbf6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      editor/plugins/script_editor_plugin.cpp

+ 1 - 1
editor/plugins/script_editor_plugin.cpp

@@ -1583,7 +1583,7 @@ void ScriptEditor::_update_script_names() {
 		}
 		}
 	}
 	}
 
 
-	if (_sort_list_on_update) {
+	if (_sort_list_on_update && !sedata.empty()) {
 		sedata.sort();
 		sedata.sort();
 
 
 		// change actual order of tab_container so that the order can be rearranged by user
 		// change actual order of tab_container so that the order can be rearranged by user