diff options
Diffstat (limited to 'engines/tinsel/handle.cpp')
-rw-r--r-- | engines/tinsel/handle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp index 82d77a2904..9366d06be6 100644 --- a/engines/tinsel/handle.cpp +++ b/engines/tinsel/handle.cpp @@ -133,7 +133,7 @@ void SetupHandleTable() { handleTable[i].flags2 = t2Flag ? f.readUint32LE() : 0; } - if (f.ioFailed()) { + if (f.eos() || f.err()) { // index file is corrupt error(FILE_IS_CORRUPT, (TinselV1PSX? PSX_INDEX_FILENAME : INDEX_FILENAME)); } |