From 9a8539e1d8122d61db3fc90ad71a3ffae23e4bf9 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 5 Dec 2010 00:45:21 +0000 Subject: MOHAWK: Fix tMOV resources at the end of the file list (thanks, fuzzie) svn-id: r54774 --- engines/mohawk/resource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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); -- cgit v1.2.3