diff options
author | Johannes Schickel | 2008-04-20 23:38:19 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-20 23:38:19 +0000 |
commit | 6aec012921f6ae5790b3fbc8fae9e3e1e3bc625d (patch) | |
tree | a107312b4f26f01ce1354f6ca7cc89fe1eee3d84 /engines | |
parent | 9616ec94c9f5318505f4e3ecdf105439d973cb43 (diff) | |
download | scummvm-rg350-6aec012921f6ae5790b3fbc8fae9e3e1e3bc625d.tar.gz scummvm-rg350-6aec012921f6ae5790b3fbc8fae9e3e1e3bc625d.tar.bz2 scummvm-rg350-6aec012921f6ae5790b3fbc8fae9e3e1e3bc625d.zip |
Simplified Kyra3 TLK loading.
svn-id: r31634
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/resource.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp index 74f177008a..0a07392d8d 100644 --- a/engines/kyra/resource.cpp +++ b/engines/kyra/resource.cpp @@ -716,10 +716,10 @@ bool ResLoaderTlk::loadFile(const Common::String &filename, Common::SeekableRead char realFilename[20]; snprintf(realFilename, 20, "%u.AUD", resFilename); + uint32 curOffset = stream.pos(); - stream.seek(entry.offset+2, SEEK_SET); - // Size of compressed data, plus 8-byte header - entry.size = stream.readUint32LE() + 8; + stream.seek(resOffset, SEEK_SET); + entry.size = stream.readUint32LE(); stream.seek(curOffset, SEEK_SET); files.push_back(FileList::value_type(realFilename, entry)); |