summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-08-24 13:53:34 +0000
committerrubidium <rubidium@openttd.org>2011-08-24 13:53:34 +0000
commitb4edc30c64b98d35fd35eb53eccd52bfc039c1f7 (patch)
tree4deef2b9a21ab44ef83f59d847bbb883dc34a540 /src/saveload
parent8e5f433b22a36b2210c4e7386b476382afad7dd6 (diff)
downloadopenttd-b4edc30c64b98d35fd35eb53eccd52bfc039c1f7.tar.xz
(svn r22827) -Codechange: pass the/a more proper sub directory when opening (some) files instead of the default one
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/oldloader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp
index 9484fb726..2ea24f33b 100644
--- a/src/saveload/oldloader.cpp
+++ b/src/saveload/oldloader.cpp
@@ -281,7 +281,7 @@ bool LoadOldSaveGame(const char *file)
InitLoading(&ls);
/* Open file */
- ls.file = FioFOpenFile(file, "rb");
+ ls.file = FioFOpenFile(file, "rb", NO_DIRECTORY);
if (ls.file == NULL) {
DEBUG(oldloader, 0, "Cannot open file '%s'", file);
@@ -320,7 +320,7 @@ bool LoadOldSaveGame(const char *file)
void GetOldSaveGameName(const char *file, char *title, const char *last)
{
- FILE *f = FioFOpenFile(file, "rb");
+ FILE *f = FioFOpenFile(file, "rb", NO_DIRECTORY);
if (f == NULL) {
*title = '\0';