(svn r23227) -Fix (r23219): The FileScanner should also consider the old directories.

This commit is contained in:
frosch 2011-11-15 00:26:06 +00:00
parent 52d3be2e05
commit 7b86e3e109
1 changed files with 12 additions and 0 deletions

View File

@ -1375,6 +1375,18 @@ uint FileScanner::Scan(const char *extension, Subdirectory sd, bool tars, bool r
}
}
switch (sd) {
case BASESET_DIR:
num += this->Scan(extension, OLD_GM_DIR, tars, recursive);
break;
case NEWGRF_DIR:
num += this->Scan(extension, OLD_DATA_DIR, tars, recursive);
break;
default: break;
}
return num;
}