diff options
author | Bastien Bouclet | 2016-08-08 07:15:04 +0200 |
---|---|---|
committer | Bastien Bouclet | 2016-08-11 19:53:20 +0200 |
commit | aeee4888beb8ba15a32a438e4ac82c53d250e039 (patch) | |
tree | 590939fe08ff1f9cb3306051d1976fac84dc0465 /engines/mohawk/riven.cpp | |
parent | e55758f444dc99e89efdd3effa225d8b54bbd1fb (diff) | |
download | scummvm-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/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index b05b76da30..054b6ca6bc 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -59,6 +59,7 @@ MohawkEngine_Riven::MohawkEngine_Riven(OSystem *syst, const MohawkGameDescriptio _curStack = kStackUnknown; _hotspots = nullptr; _gfx = nullptr; + _sound = nullptr; _externalScriptHandler = nullptr; _rnd = nullptr; _scriptMan = nullptr; @@ -92,6 +93,7 @@ MohawkEngine_Riven::MohawkEngine_Riven(OSystem *syst, const MohawkGameDescriptio } MohawkEngine_Riven::~MohawkEngine_Riven() { + delete _sound; delete _gfx; delete _console; delete _externalScriptHandler; @@ -123,6 +125,7 @@ Common::Error MohawkEngine_Riven::run() { SearchMan.add("arcriven.z", &_installerArchive, 0, false); _gfx = new RivenGraphics(this); + _sound = new Sound(this); _console = new RivenConsole(this); _saveLoad = new RivenSaveLoad(this, _saveFileMan); _externalScriptHandler = new RivenExternal(this); |