diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/filesys.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<std::string> &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); + } } } |