diff options
author | Paul Gilbert | 2016-07-24 20:56:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-24 20:56:58 -0400 |
commit | 13ce0156ff16cddbdfe108b92fbcf83a28c090e7 (patch) | |
tree | 5c0b0a417ba60b462a3e775511b76ef7097aa43e | |
parent | 875002daea7a007c2727685a767eaaf3709a5252 (diff) | |
download | scummvm-rg350-13ce0156ff16cddbdfe108b92fbcf83a28c090e7.tar.gz scummvm-rg350-13ce0156ff16cddbdfe108b92fbcf83a28c090e7.tar.bz2 scummvm-rg350-13ce0156ff16cddbdfe108b92fbcf83a28c090e7.zip |
TITANIC: Fix crash loading Sentences/Default NPC data
-rw-r--r-- | engines/titanic/titanic.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/titanic.cpp b/engines/titanic/titanic.cpp index 66d4e46546..6b23a2595d 100644 --- a/engines/titanic/titanic.cpp +++ b/engines/titanic/titanic.cpp @@ -82,6 +82,9 @@ void TitanicEngine::initialize() { DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling"); DebugMan.addDebugChannel(kDebugSound, "sound", "Sound and Music handling"); + _debugger = new Debugger(this); + _filesManager = new CFilesManager(); + CSaveableObject::initClassList(); CEnterExitFirstClassState::init(); CGameObject::init(); @@ -97,9 +100,7 @@ void TitanicEngine::initialize() { TTnpcScript::init(); OSVideoSurface::setup(); - _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); |