aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sound.cpp
diff options
context:
space:
mode:
authorJussi Pitkanen2011-06-12 16:52:44 +0300
committerEugene Sandulenko2011-08-13 23:26:41 +0100
commit1507fe4e792528244fe3c8d1a9ae45ac40936efe (patch)
treeed337868a81d97a2140bdd030f7289d02151b442 /engines/agi/sound.cpp
parentd8e1b392d2abfb67c1877aa4b3be310303250523 (diff)
downloadscummvm-rg350-1507fe4e792528244fe3c8d1a9ae45ac40936efe.tar.gz
scummvm-rg350-1507fe4e792528244fe3c8d1a9ae45ac40936efe.tar.bz2
scummvm-rg350-1507fe4e792528244fe3c8d1a9ae45ac40936efe.zip
AGI: Fix detection of IIgs sample resources
Diffstat (limited to 'engines/agi/sound.cpp')
-rw-r--r--engines/agi/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp
index f44b34c70d..10074ef402 100644
--- a/engines/agi/sound.cpp
+++ b/engines/agi/sound.cpp
@@ -42,7 +42,7 @@ AgiSound *AgiSound::createFromRawResource(uint8 *data, uint32 len, int resnum, S
uint16 type = READ_LE_UINT16(data);
// For V1 sound resources
- if ((type & 0xFF) == 0x01)
+ if (type != AGI_SOUND_SAMPLE && (type & 0xFF) == 0x01)
return new PCjrSound(data, len, resnum, manager);
switch (type) { // Create a sound object based on the type