diff options
Diffstat (limited to 'src/script/squirrel.cpp')
-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; |