diff --git a/src/filesys.cpp b/src/filesys.cpp index 597643887..784715617 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -377,7 +377,9 @@ void GetRecursiveSubPaths(std::string path, std::vector &dst) const DirListNode &n = content[i]; std::string fullpath = path + DIR_DELIM + n.name; dst.push_back(fullpath); - GetRecursiveSubPaths(fullpath, dst); + if (n.dir) { + GetRecursiveSubPaths(fullpath, dst); + } } }