From 47c7bfd6783a3399985ef33bda13617f3b022ab5 Mon Sep 17 00:00:00 2001 From: Yar-Mukhamedov <9489533+Yar-Mukhamedov@users.noreply.github.com> Date: Mon, 16 Jul 2018 13:05:45 +0600 Subject: [PATCH] Fix export templates installation error... (cherry picked from commit bf37bd94b6c3604f760abea691973b4b2d09e622) --- editor/export_template_manager.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp index ca64447559d..25325adb253 100644 --- a/editor/export_template_manager.cpp +++ b/editor/export_template_manager.cpp @@ -226,7 +226,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); } @@ -266,6 +269,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);