浏览代码

Fixed early return in PcxToPng convertor

 Convertor would abort if no regular file found, instead of continuing to next item.
krs 2 年之前
父节点
当前提交
774a8e024c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mapeditor/resourceExtractor/ResourceConverter.cpp

+ 1 - 1
mapeditor/resourceExtractor/ResourceConverter.cpp

@@ -45,7 +45,7 @@ void ResourceConverter::doConvertPcxToPng(const bfs::path & sourceFolder, bool d
 		try
 		{
 			if(!bfs::is_regular_file(directoryEntry))
-				return;
+				continue;
 
 			std::string filePath = directoryEntry.path().string();
 			std::string fileStem = directoryEntry.path().stem().string();