Fixing text strings embedded in the TOT

svn-id: r41903
This commit is contained in:
Sven Hesse 2009-06-26 19:03:37 +00:00
parent 43d61d598a
commit 5a6573d33d

View File

@ -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);
}
}