aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-08 07:15:04 +0200
committerBastien Bouclet2016-08-11 19:53:20 +0200
commitaeee4888beb8ba15a32a438e4ac82c53d250e039 (patch)
tree590939fe08ff1f9cb3306051d1976fac84dc0465 /engines/mohawk/myst.cpp
parente55758f444dc99e89efdd3effa225d8b54bbd1fb (diff)
downloadscummvm-rg350-aeee4888beb8ba15a32a438e4ac82c53d250e039.tar.gz
scummvm-rg350-aeee4888beb8ba15a32a438e4ac82c53d250e039.tar.bz2
scummvm-rg350-aeee4888beb8ba15a32a438e4ac82c53d250e039.zip
MOHAWK: Allow the games to have a different sound manager
Diffstat (limited to 'engines/mohawk/myst.cpp')
-rw-r--r--engines/mohawk/myst.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp
index a1c6d0e748..3c00c1e11b 100644
--- a/engines/mohawk/myst.cpp
+++ b/engines/mohawk/myst.cpp
@@ -75,6 +75,7 @@ MohawkEngine_Myst::MohawkEngine_Myst(OSystem *syst, const MohawkGameDescription
_curResource = -1;
_hoverResource = nullptr;
+ _sound = nullptr;
_gfx = nullptr;
_console = nullptr;
_scriptParser = nullptr;
@@ -88,6 +89,7 @@ MohawkEngine_Myst::~MohawkEngine_Myst() {
DebugMan.clearAllDebugChannels();
delete _gfx;
+ delete _sound;
delete _console;
delete _scriptParser;
delete _gameState;
@@ -220,6 +222,7 @@ Common::Error MohawkEngine_Myst::run() {
MohawkEngine::run();
_gfx = new MystGraphics(this);
+ _sound = new Sound(this);
_console = new MystConsole(this);
_gameState = new MystGameState(this, _saveFileMan);
_optionsDialog = new MystOptionsDialog(this);