aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorColin Snover2016-07-01 12:38:44 -0500
committerColin Snover2016-07-01 12:42:39 -0500
commite8552cf96c91094bd69d7ca5859008a0f18f7957 (patch)
tree698adca1c589489fbb95c1b69f68c259efac31cb /engines/sci
parent17b3dc4584ab2f01d3109c13cf202db6d9532c5e (diff)
downloadscummvm-rg350-e8552cf96c91094bd69d7ca5859008a0f18f7957.tar.gz
scummvm-rg350-e8552cf96c91094bd69d7ca5859008a0f18f7957.tar.bz2
scummvm-rg350-e8552cf96c91094bd69d7ca5859008a0f18f7957.zip
SCI32: Fix audio fading
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sound/soundcmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp
index c5d8dda56b..c3c159de55 100644
--- a/engines/sci/sound/soundcmd.cpp
+++ b/engines/sci/sound/soundcmd.cpp
@@ -411,7 +411,7 @@ reg_t SoundCommandParser::kDoSoundFade(int argc, reg_t *argv, reg_t acc) {
#ifdef ENABLE_SCI32
if (_soundVersion >= SCI_VERSION_2_1_EARLY && musicSlot->isSample) {
- g_sci->_audio32->fadeChannel(ResourceId(kResourceTypeAudio, musicSlot->resourceId), musicSlot->soundObj, argv[2].toSint16(), argv[3].toSint16(), argv[4].toSint16(), (bool)argv[5].toSint16());
+ g_sci->_audio32->fadeChannel(ResourceId(kResourceTypeAudio, musicSlot->resourceId), musicSlot->soundObj, argv[1].toSint16(), argv[2].toSint16(), argv[3].toSint16(), argc > 4 ? (bool)argv[4].toSint16() : false);
return acc;
}
#endif