diff options
author | Torbjörn Andersson | 2008-04-20 07:44:27 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2008-04-20 07:44:27 +0000 |
commit | 8cbd185731b1b378c80126c28d6f8e5f7c75b78b (patch) | |
tree | ee6f2a5d9570779843cd81bd7244f47ce257d2e2 | |
parent | 913f40688af37eb1aa4c392da1b4fa1614225d77 (diff) | |
download | scummvm-rg350-8cbd185731b1b378c80126c28d6f8e5f7c75b78b.tar.gz scummvm-rg350-8cbd185731b1b378c80126c28d6f8e5f7c75b78b.tar.bz2 scummvm-rg350-8cbd185731b1b378c80126c28d6f8e5f7c75b78b.zip |
Use correct (I hope) size when loading TLK files. The size field in the AUD
header does not count the size of the header itself. (This fixes a failed
assertion when entering the Pegasus Landing in Kyrandia 3.)
svn-id: r31590
-rw-r--r-- | engines/kyra/resource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp index 8d09e2fa59..74f177008a 100644 --- a/engines/kyra/resource.cpp +++ b/engines/kyra/resource.cpp @@ -718,7 +718,8 @@ bool ResLoaderTlk::loadFile(const Common::String &filename, Common::SeekableRead uint32 curOffset = stream.pos(); stream.seek(entry.offset+2, SEEK_SET); - entry.size = stream.readUint32LE(); + // Size of compressed data, plus 8-byte header + entry.size = stream.readUint32LE() + 8; stream.seek(curOffset, SEEK_SET); files.push_back(FileList::value_type(realFilename, entry)); |