diff options
author | Jordi Vilalta Prat | 2010-02-27 15:54:31 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2010-02-27 15:54:31 +0000 |
commit | 05f942917eef03c7075aa5bc867582e9b5ae0f2d (patch) | |
tree | b60349cff5b69ddd49602dd01d81b93e503573cc /engines/draci/music.cpp | |
parent | 9fcbfc180eb4177902c2ba61965600a42834dee8 (diff) | |
download | scummvm-rg350-05f942917eef03c7075aa5bc867582e9b5ae0f2d.tar.gz scummvm-rg350-05f942917eef03c7075aa5bc867582e9b5ae0f2d.tar.bz2 scummvm-rg350-05f942917eef03c7075aa5bc867582e9b5ae0f2d.zip |
DRACI: Don't try to set the volume for channels that couldn't be allocated (fixes bug #2907954: "DRAGON: Crash in Intro")
svn-id: r48147
Diffstat (limited to 'engines/draci/music.cpp')
-rw-r--r-- | engines/draci/music.cpp | 3 |
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]) |