diff options
author | rubidium <rubidium@openttd.org> | 2009-06-18 09:47:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-06-18 09:47:06 +0000 |
commit | 98b4f1fce2714f25c4dc78d258b97e4c05d9d2f6 (patch) | |
tree | 81a25e7f8ea2cb196f6d5236e9a01e45fd3a42f2 /src/fileio.cpp | |
parent | b88443f035077990ccdb7966e08af69f9654fe58 (diff) | |
download | openttd-98b4f1fce2714f25c4dc78d258b97e4c05d9d2f6.tar.xz |
(svn r16590) -Fix [FS#2967]: don't crash when tars/newgrfs are removed, just tell the file could be opened/found.
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r-- | src/fileio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 7abf732fb..bcccb3419 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -337,7 +337,7 @@ FILE *FioFOpenFileSp(const char *filename, const char *mode, Searchpath sp, Subd FILE *FioFOpenFileTar(TarFileListEntry *entry, size_t *filesize) { FILE *f = fopen(entry->tar_filename, "rb"); - assert(f != NULL); + if (f == NULL) return f; fseek(f, entry->position, SEEK_SET); if (filesize != NULL) *filesize = entry->size; |