aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-18 01:38:08 +0000
committerFilippos Karapetis2010-06-18 01:38:08 +0000
commit2d61dd8608aafe0e524cec3e496f6d33f55cd922 (patch)
tree0e0415155afe346ed541ec0fdab6fff30ee15d91
parent7a22e491e39a5e15cf17168c2fde1368eea2d96b (diff)
downloadscummvm-rg350-2d61dd8608aafe0e524cec3e496f6d33f55cd922.tar.gz
scummvm-rg350-2d61dd8608aafe0e524cec3e496f6d33f55cd922.tar.bz2
scummvm-rg350-2d61dd8608aafe0e524cec3e496f6d33f55cd922.zip
Fixed invalid memory access in SQ6
svn-id: r49986
-rw-r--r--engines/sci/engine/ksound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/ksound.cpp b/engines/sci/engine/ksound.cpp
index 83407c140d..daff676a28 100644
--- a/engines/sci/engine/ksound.cpp
+++ b/engines/sci/engine/ksound.cpp
@@ -151,7 +151,7 @@ reg_t kDoAudio(EngineState *s, int argc, reg_t *argv) {
volume = CLIP<int16>(volume, 0, AUDIO_VOLUME_MAX);
debugC(2, kDebugLevelSound, "kDoAudio: set volume to %d", volume);
mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, volume * 2);
- break;
+ return make_reg(0, volume);
}
case kSciAudioLanguage:
// In SCI1.1: tests for digital audio support