From 35d3d26f0cd4ca11beae544fa3c36f32c2c0df8b Mon Sep 17 00:00:00 2001 From: James Brown Date: Mon, 13 Jan 2003 13:13:36 +0000 Subject: Fix old-game resource error dialog svn-id: r6441 --- scumm/sound.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scumm') diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 95a92caf23..d632f60012 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -742,6 +742,10 @@ void Sound::pauseSounds(bool pause) { if (se) se->pause(pause); + // Don't pause sounds if the game isn't active + if (!_scumm->_roomResource) + return; + _soundsPaused = pause; _scumm->_mixer->pause(pause); -- cgit v1.2.3