aboutsummaryrefslogtreecommitdiff
path: root/scumm/scummvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/scummvm.cpp')
-rw-r--r--scumm/scummvm.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 0ae28c48d1..600b9a6398 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -1060,12 +1060,16 @@ void Scumm::processKbd()
_sound->_sound_volume_master-=5;
if (_sound->_sound_volume_master < 0)
_sound->_sound_volume_master = 0;
- _imuse->set_master_volume(_sound->_sound_volume_master);
+ if (_imuse) {
+ _imuse->set_master_volume(_sound->_sound_volume_master);
+ }
} else if (_lastKeyHit == ']') { // ] volume down
_sound->_sound_volume_master+=5;
if (_sound->_sound_volume_master > 128)
_sound->_sound_volume_master = 128;
- _imuse->set_master_volume(_sound->_sound_volume_master);
+ if (_imuse) {
+ _imuse->set_master_volume(_sound->_sound_volume_master);
+ }
} else if (_lastKeyHit == '-') { // - text speed down
_defaultTalkDelay+=5;
if (_defaultTalkDelay > 90)