Fixed invalid memory access in SQ6

svn-id: r49986
This commit is contained in:
Filippos Karapetis 2010-06-18 01:38:08 +00:00
parent 7a22e491e3
commit 2d61dd8608

View File

@ -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