diff options
Diffstat (limited to 'engines/tinsel/strres.cpp')
-rw-r--r-- | engines/tinsel/strres.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/strres.cpp b/engines/tinsel/strres.cpp index 570c30d84c..8f9f72f446 100644 --- a/engines/tinsel/strres.cpp +++ b/engines/tinsel/strres.cpp @@ -112,7 +112,7 @@ void ChangeLanguage(LANGUAGE newLang) { // first long is the filelength and for uncompressed files it is the chunk // identifier textLen = f.readUint32LE(); - if (f.ioFailed()) + if (f.eos() || f.err()) error(FILE_IS_CORRUPT, _vm->getTextFile(newLang)); if (textLen == CHUNK_STRING || textLen == CHUNK_MBSTRING) { |