mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 10:19:27 +00:00
Fixed invalid memory access in SQ6
svn-id: r49986
This commit is contained in:
parent
7a22e491e3
commit
2d61dd8608
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user