aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/resource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mohawk/resource.cpp b/engines/mohawk/resource.cpp
index 430361d88c..b0ae8dd6ea 100644
--- a/engines/mohawk/resource.cpp
+++ b/engines/mohawk/resource.cpp
@@ -297,6 +297,7 @@ bool MohawkArchive::openStream(Common::SeekableReadStream *stream) {
// than passing _stream at the right offset). We may want to do that in the future, though.
if (tag == ID_TMOV) {
uint16 nextFileIndex = index;
+ res.size = 0;
while (res.size == 0) {
if (nextFileIndex == fileTable.size())
res.size = stream->size() - fileTable[index - 1].offset;