diff options
author | Bastien Bouclet | 2017-07-07 19:44:18 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-07-07 19:44:18 +0200 |
commit | a9a3089aa5227d7d0f18f51dc6a9637f20a542df (patch) | |
tree | 5a69fd3391a8b0f522cab3a30a9fff1b156a9246 | |
parent | 93c75a46806810838b595a8b8d320595eca878f7 (diff) | |
download | scummvm-rg350-a9a3089aa5227d7d0f18f51dc6a9637f20a542df.tar.gz scummvm-rg350-a9a3089aa5227d7d0f18f51dc6a9637f20a542df.tar.bz2 scummvm-rg350-a9a3089aa5227d7d0f18f51dc6a9637f20a542df.zip |
MOHAWK: Fix tMOV size computation not to use uninitialized memory
-rw-r--r-- | engines/mohawk/resource.cpp | 1 |
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; |