aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/vqa.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/vqa.cpp b/engines/kyra/vqa.cpp
index d0e54f996b..674a5755cf 100644
--- a/engines/kyra/vqa.cpp
+++ b/engines/kyra/vqa.cpp
@@ -106,6 +106,9 @@ uint32 VQAMovie::readTag() {
uint32 tag = _file->readUint32BE();
+ if (_file->eos())
+ return 0;
+
if (!(tag & 0xFF000000)) {
tag = (tag << 8) | _file->readByte();
}