[Scummvm-cvs-logs] scummvm master -> d3717c12741f69facfd76a12675d18ed3c9c5b26
clone2727
clone2727 at gmail.com
Thu Jun 30 21:53:01 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d3717c1274 MOHAWK: Fix tMOV resources at the end of a file
Commit: d3717c12741f69facfd76a12675d18ed3c9c5b26
https://github.com/scummvm/scummvm/commit/d3717c12741f69facfd76a12675d18ed3c9c5b26
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2011-06-30T12:51:15-07:00
Commit Message:
MOHAWK: Fix tMOV resources at the end of a file
Thanks to fuzzie for noticing
Changed paths:
engines/mohawk/resource.cpp
diff --git a/engines/mohawk/resource.cpp b/engines/mohawk/resource.cpp
index 9b39692..f01375b 100644
--- a/engines/mohawk/resource.cpp
+++ b/engines/mohawk/resource.cpp
@@ -294,7 +294,7 @@ bool MohawkArchive::openStream(Common::SeekableReadStream *stream) {
// We need to do this because of the way Mohawk is set up (this is much more "proper"
// than passing _stream at the right offset). We may want to do that in the future, though.
if (tag == ID_TMOV) {
- if (index == fileTable.size() - 1)
+ if (index == fileTable.size())
res.size = stream->size() - fileTable[index - 1].offset;
else
res.size = fileTable[index].offset - fileTable[index - 1].offset;
@@ -304,7 +304,6 @@ bool MohawkArchive::openStream(Common::SeekableReadStream *stream) {
debug(4, "Entry[%02x]: ID = %04x (%d) Index = %04x", j, id, id, index);
}
-
// Return to next TypeTable entry
stream->seek(absOffset + (i + 1) * 8 + 4);
More information about the Scummvm-git-logs
mailing list