diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp index 541c848ca3b..823e2f46173 100644 --- a/editor/export_template_manager.cpp +++ b/editor/export_template_manager.cpp @@ -228,7 +228,10 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_ version = data_str; } - fc++; + if (file.get_file().size() != 0) { + fc++; + } + ret = unzGoToNextFile(pkg); } @@ -268,6 +271,11 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_ String file = String(fname).get_file(); + if (file.size() == 0) { + ret = unzGoToNextFile(pkg); + continue; + } + Vector data; data.resize(info.uncompressed_size);