[Scummvm-git-logs] scummvm master -> 0154a4565ca8c26e187b53f2ccdc8d519b7891e1

fracturehill noreply at scummvm.org
Mon Aug 28 18:05:03 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0154a4565c NANCY: Silence MSVC warning


Commit: 0154a4565ca8c26e187b53f2ccdc8d519b7891e1
    https://github.com/scummvm/scummvm/commit/0154a4565ca8c26e187b53f2ccdc8d519b7891e1
Author: Kaloyan Chehlarski (strahy at outlook.com)
Date: 2023-08-28T21:04:52+03:00

Commit Message:
NANCY: Silence MSVC warning

Changed paths:
    engines/nancy/state/setupmenu.cpp


diff --git a/engines/nancy/state/setupmenu.cpp b/engines/nancy/state/setupmenu.cpp
index 2f487825cae..855341f6e87 100644
--- a/engines/nancy/state/setupmenu.cpp
+++ b/engines/nancy/state/setupmenu.cpp
@@ -166,7 +166,7 @@ void SetupMenu::run() {
 		float endPos = scroll->getPos();
 
 		if (endPos != startPos) {
-			Audio::Mixer::SoundType type;
+			Audio::Mixer::SoundType type = Audio::Mixer::SoundType::kSpeechSoundType;
 			switch (i) {
 			case 0 :
 				type = Audio::Mixer::SoundType::kSpeechSoundType;
@@ -180,6 +180,8 @@ void SetupMenu::run() {
 				type = Audio::Mixer::SoundType::kSFXSoundType;
 				ConfMan.setInt("sfx_volume", endPos * 255, ConfMan.getActiveDomainName());
 				break;
+			default:
+				break;
 			}
 			
 			g_system->getMixer()->setVolumeForSoundType(type, endPos * 255);




More information about the Scummvm-git-logs mailing list