summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-07-28 12:45:27 +0000
committertruelight <truelight@openttd.org>2007-07-28 12:45:27 +0000
commit3a45534e4ec06af8eefd66ba47bc3f4545e6d09b (patch)
treea53228ee8acd28f3370393012690a53feee735f8 /src
parent94fa0ec289450c893ab12970dff0155acc4e894a (diff)
downloadopenttd-3a45534e4ec06af8eefd66ba47bc3f4545e6d09b.tar.xz
(svn r10715) -Fix: limited-fs code was broken
Diffstat (limited to 'src')
-rw-r--r--src/fileio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 57affe1fd..a8cf964a0 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -66,8 +66,8 @@ static void FioRestoreFile(int slot)
{
/* Do we still have the file open, or should we reopen it? */
if (_fio.handles[slot] == NULL) {
- DEBUG(misc, 6, "Restoring file '%s' in slot '%d' from disk", _fio.filename[slot], slot);
- FioOpenFile(slot, _fio.filename[slot]);
+ DEBUG(misc, 6, "Restoring file '%s' in slot '%d' from disk", _fio.filenames[slot], slot);
+ FioOpenFile(slot, _fio.filenames[slot]);
}
_fio.usage_count[slot]++;
}
@@ -165,7 +165,7 @@ static void FioFreeHandle()
}
}
assert(slot != -1);
- DEBUG(misc, 6, "Closing filehandler '%s' in slot '%d' because of fd-limit", _fio.filename[slot], slot);
+ DEBUG(misc, 6, "Closing filehandler '%s' in slot '%d' because of fd-limit", _fio.filenames[slot], slot);
FioCloseFile(slot);
}
}