aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs
diff options
context:
space:
mode:
authorFilippos Karapetis2009-12-19 10:43:38 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:08 +0100
commitcb5c0e698667ff0e277be19b01b406367a0747c9 (patch)
tree55e9c99e647dffe4f2862629c79d6861c3f60ba0 /engines/toltecs
parentb038d2e4f2473383b2c9fcccdaf0861f21c7a3d5 (diff)
downloadscummvm-rg350-cb5c0e698667ff0e277be19b01b406367a0747c9.tar.gz
scummvm-rg350-cb5c0e698667ff0e277be19b01b406367a0747c9.tar.bz2
scummvm-rg350-cb5c0e698667ff0e277be19b01b406367a0747c9.zip
TOLTECS: Sync with ScummVM rev. 46379
Diffstat (limited to 'engines/toltecs')
-rw-r--r--engines/toltecs/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/toltecs/saveload.cpp b/engines/toltecs/saveload.cpp
index d758fa712d..cccc3e6817 100644
--- a/engines/toltecs/saveload.cpp
+++ b/engines/toltecs/saveload.cpp
@@ -79,7 +79,7 @@ ToltecsEngine::kReadSaveHeaderError ToltecsEngine::readSaveHeader(Common::Seekab
header.gameID = in->readByte();
header.flags = in->readUint32LE();
- return (in->ioFailed() ? kRSHEIoError : kRSHENoError);
+ return ((in->eos() || in->err()) ? kRSHEIoError : kRSHENoError);
}
void ToltecsEngine::savegame(const char *filename, const char *description) {