summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-15 00:25:17 +0000
committerfrosch <frosch@openttd.org>2011-11-15 00:25:17 +0000
commit52d3be2e05db329a202a8bb4db3b4b95c40fc617 (patch)
treec2d9211f13a913de6708963c7ebcac67e548f569 /src/fileio.cpp
parent86a168b2e9e9f19b8d3e22b368f3aacc920c9896 (diff)
downloadopenttd-52d3be2e05db329a202a8bb4db3b4b95c40fc617.tar.xz
(svn r23226) -Fix (r23219): If you find a file, also use it.
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index e04cae8fa..c7f14f18f 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -505,6 +505,8 @@ FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir,
switch (subdir) {
case BASESET_DIR:
f = FioFOpenFile(filename, mode, OLD_GM_DIR, filesize);
+ if (f != NULL) break;
+ /* FALL THROUGH */
case NEWGRF_DIR:
f = FioFOpenFile(filename, mode, OLD_DATA_DIR, filesize);
break;