diff options
author | rubidium <rubidium@openttd.org> | 2011-11-14 21:28:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-14 21:28:43 +0000 |
commit | 160294ff22a2b30fc75be1977117eac6910bdd82 (patch) | |
tree | 9e70bb61b0b940a27bbc3d7ede3d81458c786a7a /src/script | |
parent | f60042942473640e60136e7a43d2bc6a4c824a26 (diff) | |
download | openttd-160294ff22a2b30fc75be1977117eac6910bdd82.tar.xz |
(svn r23216) -Codechange: introduce the concept of having different tar lists
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/squirrel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index e4657a7dd..193f4355c 100644 --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -429,6 +429,7 @@ static SQInteger _io_file_read(SQUserPointer file, SQUserPointer buf, SQInteger { size_t size; FILE *file = FioFOpenFile(filename, "rb", AI_DIR, &size); + if (file == NULL) file = FioFOpenFile(filename, "rb", AI_LIBRARY_DIR, &size); SQInteger ret; unsigned short us; unsigned char uc; |