[Scummvm-cvs-logs] SF.net SVN: scummvm:[54774] scummvm/trunk/engines/mohawk/resource.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Sun Dec 5 01:45:22 CET 2010
Revision: 54774
http://scummvm.svn.sourceforge.net/scummvm/?rev=54774&view=rev
Author: mthreepwood
Date: 2010-12-05 00:45:21 +0000 (Sun, 05 Dec 2010)
Log Message:
-----------
MOHAWK: Fix tMOV resources at the end of the file list (thanks, fuzzie)
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/resource.cpp
Modified: scummvm/trunk/engines/mohawk/resource.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/resource.cpp 2010-12-05 00:43:42 UTC (rev 54773)
+++ scummvm/trunk/engines/mohawk/resource.cpp 2010-12-05 00:45:21 UTC (rev 54774)
@@ -320,7 +320,7 @@
// 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list