소스 검색

Merge pull request #13024 from omar25h/set_current_tab_fix

fix set_current_tab: Indexp_current=-1 out of size
George Marques 7 년 전
부모
커밋
3b596cdbe0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();
 
 		// change actual order of tab_container so that the order can be rearranged by user