MOHAWK: Fix tMOV resources at the end of a file
Thanks to fuzzie for noticing
This commit is contained in:
parent
aa0f307e06
commit
d3717c1274
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue