diff options
author | Eugene Sandulenko | 2017-03-21 23:20:33 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-21 23:44:51 +0100 |
commit | 0e345845730371a12930dde13db1da1e9c00901b (patch) | |
tree | d4026a42b790176239d26034f8f0f8cc451d3721 /engines/director/archive.cpp | |
parent | eb1393a8596ff339c47c5b499115c28fece8da66 (diff) | |
download | scummvm-rg350-0e345845730371a12930dde13db1da1e9c00901b.tar.gz scummvm-rg350-0e345845730371a12930dde13db1da1e9c00901b.tar.bz2 scummvm-rg350-0e345845730371a12930dde13db1da1e9c00901b.zip |
DIRECTOR: Fix loading D2 EXE
Diffstat (limited to 'engines/director/archive.cpp')
-rw-r--r-- | engines/director/archive.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp index f426107ee3..d35f6b6803 100644 --- a/engines/director/archive.cpp +++ b/engines/director/archive.cpp @@ -275,8 +275,8 @@ bool RIFFArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff if (tag == 0) break; - uint16 startResPos = stream->pos(); - stream->seek(offset + 12); + uint32 startResPos = stream->pos(); + stream->seek(startOffset + offset + 12); Common::String name = ""; byte nameSize = stream->readByte(); @@ -289,7 +289,7 @@ bool RIFFArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff stream->seek(startResPos); - debug(3, "Found RIFF resource '%s' %d: %d @ 0x%08x", tag2str(tag), id, size, offset); + debug(3, "Found RIFF resource '%s' %d: %d @ 0x%08x", tag2str(tag), id, size, startOffset + offset); ResourceMap &resMap = _types[tag]; Resource &res = resMap[id]; |