aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorja Lorente2016-06-17 14:16:35 +0200
committerBorja Lorente2016-08-14 18:28:08 +0200
commitda174b708c74b051d297fb23e61b70faf96448d4 (patch)
tree2c3902dcf1bdae65cc5050136824c33775e80137
parentec768fbec167321914326a54a7efc2032e03c3e3 (diff)
downloadscummvm-rg350-da174b708c74b051d297fb23e61b70faf96448d4.tar.gz
scummvm-rg350-da174b708c74b051d297fb23e61b70faf96448d4.tar.bz2
scummvm-rg350-da174b708c74b051d297fb23e61b70faf96448d4.zip
MACVENTURE: Fix small retrieval bug
-rw-r--r--engines/macventure/container.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/macventure/container.h b/engines/macventure/container.h
index 0c6a41ee17..3573ddabeb 100644
--- a/engines/macventure/container.h
+++ b/engines/macventure/container.h
@@ -56,8 +56,7 @@ public:
int dataLen = _res->size() - sizeof(_header);
_lenObjs = _header;
_numObjs = dataLen / _lenObjs;
- }
- else {
+ } else {
_header &= 0x7fffffff;
_res->seek(_header, SEEK_SET);
_numObjs = _res->readUint16BE();
@@ -178,7 +177,7 @@ public:
uint32 groupID = (id >> 6);
uint32 objectIndex = id & 0x3f; // Index within the group
- _res->seek(subHead + (groupID * 6), SEEK_SET);
+ _res->seek((groupID * 6), SEEK_SET);
uint32 offset = 0;
for (uint i = 0; i < objectIndex; i++) {