aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/general.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/general.cpp')
-rw-r--r--engines/cge/general.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cge/general.cpp b/engines/cge/general.cpp
index 3c0dc8a802..50dfeaeb5a 100644
--- a/engines/cge/general.cpp
+++ b/engines/cge/general.cpp
@@ -238,6 +238,10 @@ uint16 IoHand::read(void *buf, uint16 len) {
error("Read %s - %d bytes", _file->getName(), len);
if (_crypt)
_seed = _crypt(buf, len, Seed);
+
+ if (_file->eos())
+ _error = 1;
+
return bytesRead;
}