diff options
Diffstat (limited to 'engines/startrek/startrek.cpp')
-rw-r--r-- | engines/startrek/startrek.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/startrek/startrek.cpp b/engines/startrek/startrek.cpp index b01749525e..123fc74cf5 100644 --- a/engines/startrek/startrek.cpp +++ b/engines/startrek/startrek.cpp @@ -37,6 +37,7 @@ #include "engines/util.h" #include "video/qt_decoder.h" +#include "startrek/console.h" #include "startrek/iwfile.h" #include "startrek/lzss.h" #include "startrek/room.h" @@ -94,6 +95,7 @@ StarTrekEngine::StarTrekEngine(OSystem *syst, const StarTrekGameDescription *gam _missionToLoad = "DEMON"; _roomIndexToLoad = 0; + _mapFile = nullptr; _showSubtitles = true; Common::fill(_r3List, _r3List + NUM_SPACE_OBJECTS, (R3 *)nullptr); @@ -106,6 +108,8 @@ StarTrekEngine::StarTrekEngine(OSystem *syst, const StarTrekGameDescription *gam StarTrekEngine::~StarTrekEngine() { delete _activeMenu->nextMenu; delete _activeMenu; + + delete _console; delete _gfx; delete _sound; delete _macResFork; @@ -114,6 +118,7 @@ StarTrekEngine::~StarTrekEngine() { Common::Error StarTrekEngine::run() { _gfx = new Graphics(this); _sound = new Sound(this); + _console = new Console(this); if (getPlatform() == Common::kPlatformMacintosh) { _macResFork = new Common::MacResManager(); |