aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/draci/music.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/draci/music.cpp b/engines/draci/music.cpp
index f881c27e7a..8186d36068 100644
--- a/engines/draci/music.cpp
+++ b/engines/draci/music.cpp
@@ -127,7 +127,8 @@ void MusicPlayer::send(uint32 b) {
_channel[channel] = (channel == 9) ? _driver->getPercussionChannel() : _driver->allocateChannel();
// If a new channel is allocated during the playback, make sure
// its volume is correctly initialized.
- setChannelVolume(channel);
+ if (_channel[channel])
+ setChannelVolume(channel);
}
if (_channel[channel])