aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/modal.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-11-06 23:52:01 +0200
committerEugene Sandulenko2013-11-06 23:52:01 +0200
commit49fd22b5a9f912f2d4fef9175518684930fcf881 (patch)
treef59cc7b7780f79af93cffd6addb7f5988028bea0 /engines/fullpipe/modal.cpp
parent627769a2f5d9ec0bbcf6ce9f9200a173bfea84bf (diff)
downloadscummvm-rg350-49fd22b5a9f912f2d4fef9175518684930fcf881.tar.gz
scummvm-rg350-49fd22b5a9f912f2d4fef9175518684930fcf881.tar.bz2
scummvm-rg350-49fd22b5a9f912f2d4fef9175518684930fcf881.zip
FULLPIPE: Implement ModalIntro destructor
Diffstat (limited to 'engines/fullpipe/modal.cpp')
-rw-r--r--engines/fullpipe/modal.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index 44e7b46184..f766be3eac 100644
--- a/engines/fullpipe/modal.cpp
+++ b/engines/fullpipe/modal.cpp
@@ -48,6 +48,11 @@ ModalIntro::ModalIntro() {
_sfxVolume = g_fullpipe->_sfxVolume;
}
+ModalIntro::~ModalIntro() {
+ g_fullpipe->stopAllSounds();
+ g_fullpipe->_sfxVolume = _sfxVolume;
+}
+
bool ModalIntro::handleMessage(ExCommand *message) {
if (message->_messageKind != 17)
return false;