aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/resources.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/resources.cpp b/engines/gob/resources.cpp
index e803f8894c..20427e547b 100644
--- a/engines/gob/resources.cpp
+++ b/engines/gob/resources.cpp
@@ -349,7 +349,7 @@ bool Resources::loadTOTTextTable(const Common::String &fileBase) {
fromTOT = true;
_totTextTable->data = _totData + totProps.textsOffset - _totResStart;
_totTextTable->needFree = false;
- _totTextTable->size = _totSize - (totProps.textsOffset - _totResStart);
+ _totTextTable->size = _totSize - totProps.textsOffset;
}
if (_totTextTable->data) {
@@ -364,7 +364,7 @@ bool Resources::loadTOTTextTable(const Common::String &fileBase) {
item.size = totTextTable.readSint16LE();
if (fromTOT)
- item.offset -= _totResStart;
+ item.offset -= (totProps.textsOffset - _totResStart);
}
}