summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-18 22:26:29 +0000
committerrubidium <rubidium@openttd.org>2010-11-18 22:26:29 +0000
commitf7b2a87292fdfec4bc695e4d962f9c6e17a14800 (patch)
treefc27ef42a61645cddeadaee3ad2bda3e1baff8a1 /src/fileio.cpp
parentc7f0518f162645e4bccdea64387b8fe63009af2a (diff)
downloadopenttd-f7b2a87292fdfec4bc695e4d962f9c6e17a14800.tar.xz
(svn r21247) -Fix: make the tar scanner forget about old (possibly removed) tars
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index c90d28f9f..c56640579 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -543,7 +543,11 @@ static void SimplifyFileName(char *name)
#endif
}
-/* static */ uint TarScanner::DoScan() {
+/* static */ uint TarScanner::DoScan()
+{
+ _tar_filelist.clear();
+ _tar_list.clear();
+
DEBUG(misc, 1, "Scanning for tars");
TarScanner fs;
uint num = fs.Scan(".tar", DATA_DIR, false);