# HG changeset patch # User frosch # Date 2011-11-15 00:26:06 # Node ID 0e9d2aa3fc1b8e6f84da8b44cdc5f399b6189be9 # Parent 75b4b19e7de8691ee564a55d304873938d637e39 (svn r23227) -Fix (r23219): The FileScanner should also consider the old directories. diff --git a/src/fileio.cpp b/src/fileio.cpp --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -1375,6 +1375,18 @@ uint FileScanner::Scan(const char *exten } } + 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; }