mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix fs::GetRecursiveSubPaths trying to get directory lists for files
This commit is contained in:
parent
8621e6de5d
commit
33eed6eb84
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue