From 8618cbb6cbf63849e03f8b9f042cb555a952322a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 3 Aug 2016 17:44:10 +0200 Subject: DIRECTOR: Fix engine initialization --- engines/director/director.cpp | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) (limited to 'engines/director') diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 1c7fec17d6..c6806e8de2 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -53,17 +53,17 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam // Setup mixer syncSoundSettings(); - _sharedCasts = new Common::HashMap; - _sharedDIB = new Common::HashMap; - _sharedBMP = new Common::HashMap; - _sharedSTXT = new Common::HashMap; - _sharedSound = new Common::HashMap; - - _mainArchive = 0; - _macBinary = 0; - //FIXME - _sharedMMM = "SHARDCST.MMM"; - _movies = new Common::HashMap; + + _sharedCasts = nullptr; + _sharedSound = nullptr; + _sharedBMP = nullptr; + _sharedSTXT = nullptr; + _sharedDIB = nullptr; + + _mainArchive = nullptr; + _macBinary = nullptr; + + _movies = nullptr; const Common::FSNode gameDataDir(ConfMan.get("path")); SearchMan.addSubDirectoryMatching(gameDataDir, "data"); @@ -89,13 +89,9 @@ DirectorEngine::~DirectorEngine() { Common::Error DirectorEngine::run() { debug("Starting v%d Director game", getVersion()); - _sharedCasts = nullptr; - _sharedSound = nullptr; - _sharedBMP = nullptr; - _sharedSTXT = nullptr; - _sharedDIB = nullptr; + //FIXME + _sharedMMM = "SHARDCST.MMM"; - _movies = nullptr; _currentPalette = nullptr; _macBinary = nullptr; -- cgit v1.2.3