aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJames Brown2003-01-13 13:13:36 +0000
committerJames Brown2003-01-13 13:13:36 +0000
commit35d3d26f0cd4ca11beae544fa3c36f32c2c0df8b (patch)
tree9776aba6673c1d0e7862352f29eb659eab18ba98 /scumm
parenteb9726c4974111ac56bbc256658785f06d4df531 (diff)
downloadscummvm-rg350-35d3d26f0cd4ca11beae544fa3c36f32c2c0df8b.tar.gz
scummvm-rg350-35d3d26f0cd4ca11beae544fa3c36f32c2c0df8b.tar.bz2
scummvm-rg350-35d3d26f0cd4ca11beae544fa3c36f32c2c0df8b.zip
Fix old-game resource error dialog
svn-id: r6441
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp4
1 files changed, 4 insertions, 0 deletions
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);