diff options
Diffstat (limited to 'engines/tinsel/pcode.cpp')
-rw-r--r-- | engines/tinsel/pcode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/pcode.cpp b/engines/tinsel/pcode.cpp index 29f1753249..9cdec86d8f 100644 --- a/engines/tinsel/pcode.cpp +++ b/engines/tinsel/pcode.cpp @@ -406,7 +406,7 @@ void RegisterGlobals(int num) { for (int i = 0; i < length; ++i) pGlobals[i] = f.readSint32LE(); - if (f.ioFailed()) + if (f.eos() || f.err()) error(FILE_IS_CORRUPT, GLOBALS_FILENAME); f.close(); |