diff options
-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)); |