From 8804b939531f6cab6b1db35da846403f6d60fd04 Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 31 May 2016 14:21:13 +0900 Subject: [PATCH] fix random inifinite loop when open editor --- tools/editor/editor_file_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/editor/editor_file_system.cpp b/tools/editor/editor_file_system.cpp index 3fd5f7e444d..c5c92b5228c 100644 --- a/tools/editor/editor_file_system.cpp +++ b/tools/editor/editor_file_system.cpp @@ -161,7 +161,7 @@ int EditorFileSystemDirectory::get_source_count(int p_idx) const { ERR_FAIL_INDEX_V(p_idx,files.size(),0); if (!files[p_idx]->meta.enabled) return 0; - + return files[p_idx]->meta.sources.size(); } String EditorFileSystemDirectory::get_source_file(int p_idx,int p_source) const {