projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LuaVoxelManip: Add option to allocate blank data
[oweals/minetest.git]
/
src
/
filesys.cpp
diff --git
a/src/filesys.cpp
b/src/filesys.cpp
index 597643887c43a8365144461340a16357820c8a06..784715617d5de18b1e9dd52be12e3f1a1a05dfae 100644
(file)
--- 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);
+ }
}
}