[Scummvm-cvs-logs] SF.net SVN: scummvm:[49986] scummvm/trunk/engines/sci/engine/ksound.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Jun 18 03:38:08 CEST 2010


Revision: 49986
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49986&view=rev
Author:   thebluegr
Date:     2010-06-18 01:38:08 +0000 (Fri, 18 Jun 2010)

Log Message:
-----------
Fixed invalid memory access in SQ6

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/ksound.cpp

Modified: scummvm/trunk/engines/sci/engine/ksound.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/ksound.cpp	2010-06-18 01:29:07 UTC (rev 49985)
+++ scummvm/trunk/engines/sci/engine/ksound.cpp	2010-06-18 01:38:08 UTC (rev 49986)
@@ -151,7 +151,7 @@
 		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


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list