diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-12-23 15:23:21 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-12-24 17:23:07 -0500 |
commit | 33eed6eb84078b51c7ba24a774d7f56ec2bc951d (patch) | |
tree | 8c4d0c6f48ae1444347d03a026234685a1d47d93 | |
parent | 8621e6de5dc031b547739ab3ff8dc1575a284d1b (diff) | |
download | minetest-33eed6eb84078b51c7ba24a774d7f56ec2bc951d.tar.gz minetest-33eed6eb84078b51c7ba24a774d7f56ec2bc951d.tar.bz2 minetest-33eed6eb84078b51c7ba24a774d7f56ec2bc951d.zip |
Fix fs::GetRecursiveSubPaths trying to get directory lists for files
-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); + } } } |