aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/titanic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/titanic.cpp')
-rw-r--r--engines/titanic/titanic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/titanic/titanic.cpp b/engines/titanic/titanic.cpp
index e70a208552..c2c1f18f54 100644
--- a/engines/titanic/titanic.cpp
+++ b/engines/titanic/titanic.cpp
@@ -50,6 +50,7 @@ TitanicEngine::TitanicEngine(OSystem *syst, const TitanicGameDescription *gameDe
g_vm = this;
_debugger = nullptr;
_events = nullptr;
+ _filesManager = nullptr;
_window = nullptr;
_screen = nullptr;
_screenManager = nullptr;
@@ -63,6 +64,7 @@ TitanicEngine::~TitanicEngine() {
delete _screen;
delete _window;
delete _screenManager;
+ delete _filesManager;
CSaveableObject::freeClassList();
_activeMovies.clear();
}
@@ -95,6 +97,7 @@ void TitanicEngine::initialize() {
_debugger = new Debugger(this);
_events = new Events(this);
+ _filesManager = new CFilesManager();
_screen = new Graphics::Screen(0, 0);
_screenManager = new OSScreenManager(this);
_window = new CMainGameWindow(this);