diff options
Diffstat (limited to 'engines/sword25/sword25.cpp')
-rw-r--r-- | engines/sword25/sword25.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sword25/sword25.cpp b/engines/sword25/sword25.cpp index 5864057423..4c188fe7ea 100644 --- a/engines/sword25/sword25.cpp +++ b/engines/sword25/sword25.cpp @@ -61,9 +61,13 @@ Sword25Engine::Sword25Engine(OSystem *syst, const ADGameDescription *gameDesc): DebugMan.addDebugChannel(kDebugScript, "Script", "Script debug level"); DebugMan.addDebugChannel(kDebugScript, "Scripts", "Script debug level"); DebugMan.addDebugChannel(kDebugSound, "Sound", "Sound debug level"); + + _console = new Sword25Console(this); } Sword25Engine::~Sword25Engine() { + DebugMan.clearAllDebugChannels(); + delete _console; } Common::Error Sword25Engine::run() { |