diff options
-rw-r--r-- | engines/fullpipe/modal.cpp | 5 | ||||
-rw-r--r-- | engines/fullpipe/modal.h | 1 |
2 files changed, 6 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; diff --git a/engines/fullpipe/modal.h b/engines/fullpipe/modal.h index f3f571e2a9..b57d1fbd06 100644 --- a/engines/fullpipe/modal.h +++ b/engines/fullpipe/modal.h @@ -52,6 +52,7 @@ class ModalIntro : public BaseModalObject { public: ModalIntro(); + virtual ~ModalIntro(); virtual bool pollEvent() { return true; } virtual bool handleMessage(ExCommand *message); |