diff options
author | Travis Howell | 2003-08-23 07:27:59 +0000 |
---|---|---|
committer | Travis Howell | 2003-08-23 07:27:59 +0000 |
commit | b113720a6d9ece3306e7d2a0642ada11f87a6728 (patch) | |
tree | 641e0cb899eef6b26e0398ca647269318afc7410 | |
parent | 535b95fffccc7b2b6ee9f32673e50a45c17e2b30 (diff) | |
download | scummvm-rg350-b113720a6d9ece3306e7d2a0642ada11f87a6728.tar.gz scummvm-rg350-b113720a6d9ece3306e7d2a0642ada11f87a6728.tar.bz2 scummvm-rg350-b113720a6d9ece3306e7d2a0642ada11f87a6728.zip |
Work around for sound resource in ST versions.
svn-id: r9824
-rw-r--r-- | scumm/resource.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index 9f8fd53d94..f6929c109e 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -1482,8 +1482,10 @@ int Scumm::readSoundResourceSmallHeader(int type, int idx) { _fileHandle.seek(wa_size - 2, SEEK_CUR); //FIXME AD resources don't exist in Atari ST versions - ad_offs = _fileHandle.pos(); - ad_size = _fileHandle.readUint16LE(); + if (_midiDriver == MD_ADLIB) { + ad_offs = _fileHandle.pos(); + ad_size = _fileHandle.readUint16LE(); + } _fileHandle.seek(4, SEEK_CUR); total_size = wa_size + ad_size; } else { |