diff options
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/resource.cpp b/engines/mohawk/resource.cpp index abade641eb..2b423ff419 100644 --- a/engines/mohawk/resource.cpp +++ b/engines/mohawk/resource.cpp @@ -320,7 +320,7 @@ Common::SeekableReadStream *MohawkArchive::getResource(uint32 tag, uint16 id) { // We need to do this because of the way Mohawk is set up (this is much more "proper" // than passing _mhk at the right offset). We may want to do that in the future, though. if (_types[typeIndex].tag == ID_TMOV) { - if (fileTableIndex == _fileTableAmount) + if (fileTableIndex == _fileTableAmount - 1) return new Common::SeekableSubReadStream(_mhk, _fileTable[fileTableIndex].offset, _mhk->size()); else return new Common::SeekableSubReadStream(_mhk, _fileTable[fileTableIndex].offset, _fileTable[fileTableIndex + 1].offset); |