diff options
author | frosch <frosch@openttd.org> | 2011-11-15 00:25:17 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-11-15 00:25:17 +0000 |
commit | 52d3be2e05db329a202a8bb4db3b4b95c40fc617 (patch) | |
tree | c2d9211f13a913de6708963c7ebcac67e548f569 | |
parent | 86a168b2e9e9f19b8d3e22b368f3aacc920c9896 (diff) | |
download | openttd-52d3be2e05db329a202a8bb4db3b4b95c40fc617.tar.xz |
(svn r23226) -Fix (r23219): If you find a file, also use it.
-rw-r--r-- | src/fileio.cpp | 2 |
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; |