aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++) {