(svn r15111) -Fix: when scanning a path and saying it should ignore tars, it didn't do so

This commit is contained in:
rubidium 2009-01-16 16:14:01 +00:00
parent 3db8b544ba
commit 2adcaa576f
1 changed files with 5 additions and 2 deletions

View File

@ -1087,8 +1087,11 @@ uint FileScanner::Scan(const char *extension, Subdirectory sd, bool tars)
FioAppendDirectory(path, MAX_PATH, sp, sd);
num += ScanPath(this, extension, path, strlen(path));
}
FOR_ALL_TARS(tar) {
num += ScanTar(this, extension, tar);
if (tars) {
FOR_ALL_TARS(tar) {
num += ScanTar(this, extension, tar);
}
}
return num;