aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/saveload_mr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/saveload_mr.cpp')
-rw-r--r--engines/kyra/saveload_mr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/saveload_mr.cpp b/engines/kyra/saveload_mr.cpp
index 07ca5c31f5..0db82863ab 100644
--- a/engines/kyra/saveload_mr.cpp
+++ b/engines/kyra/saveload_mr.cpp
@@ -283,7 +283,7 @@ void KyraEngine_MR::loadGame(const char *fileName) {
_sceneExit3 = in.readUint16();
_sceneExit4 = in.readUint16();
- if (saveFile->err())
+ if (saveFile->err() || saveFile->eos())
error("Load failed ('%s', '%s').", fileName, header.description.c_str());
else
debugC(1, kDebugLevelMain, "Loaded savegame '%s.'", header.description.c_str());