diff options
author | Sven Hesse | 2009-06-26 19:03:37 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-26 19:03:37 +0000 |
commit | 5a6573d33de407c69000fba7acbf44cf43eab139 (patch) | |
tree | b0ebaae82d8925e7f2e9afcace6283103d4792a3 /engines | |
parent | 43d61d598ac281b71d7b4cb099bc5b6b5766a35e (diff) | |
download | scummvm-rg350-5a6573d33de407c69000fba7acbf44cf43eab139.tar.gz scummvm-rg350-5a6573d33de407c69000fba7acbf44cf43eab139.tar.bz2 scummvm-rg350-5a6573d33de407c69000fba7acbf44cf43eab139.zip |
Fixing text strings embedded in the TOT
svn-id: r41903
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/resources.cpp | 4 |
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); } } |