aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-08-23 07:27:59 +0000
committerTravis Howell2003-08-23 07:27:59 +0000
commitb113720a6d9ece3306e7d2a0642ada11f87a6728 (patch)
tree641e0cb899eef6b26e0398ca647269318afc7410
parent535b95fffccc7b2b6ee9f32673e50a45c17e2b30 (diff)
downloadscummvm-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.cpp6
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 {