[Scummvm-git-logs] scummvm master -> 1510131328f41c311ed46cecf2544acc79917d03

AndywinXp noreply at scummvm.org
Sat Apr 6 10:23:05 UTC 2024


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:
1510131328 SCUMM: HE: Fix sounds not being stopped on saving


Commit: 1510131328f41c311ed46cecf2544acc79917d03
    https://github.com/scummvm/scummvm/commit/1510131328f41c311ed46cecf2544acc79917d03
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-04-06T12:22:44+02:00

Commit Message:
SCUMM: HE: Fix sounds not being stopped on saving

Changed paths:
    engines/scumm/saveload.cpp


diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index 31be0cd8772..96dde09f06e 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -583,6 +583,9 @@ bool ScummEngine::saveState(Common::WriteStream *out, bool writeHeader) {
 bool ScummEngine::saveState(int slot, bool compat, Common::String &filename) {
 	bool saveFailed = false;
 
+	if (_game.heversion != 0)
+		_sound->stopAllSounds();
+
 	// We can't just use _saveTemporaryState here, because at
 	// this point it might not contain an updated value.
 	_pauseSoundsDuringSave = !compat;




More information about the Scummvm-git-logs mailing list