From 5a6573d33de407c69000fba7acbf44cf43eab139 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 26 Jun 2009 19:03:37 +0000 Subject: Fixing text strings embedded in the TOT svn-id: r41903 --- engines/gob/resources.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/gob') 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); } } -- cgit v1.2.3