diff options
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 6e339ebf12..e92aab3c92 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -47,6 +47,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst _lua = new LuaScript; _map = new Map; _ai = new AI; + _window = new Window; _rnd = new Common::RandomSource("hdb"); DebugMan.addDebugChannel(kDebugExample1, "Example1", "This is just an example to test"); @@ -60,6 +61,7 @@ HDBGame::~HDBGame() { delete _lua; delete _map; delete _ai; + delete _window; delete _rnd; DebugMan.clearAllDebugChannels(); @@ -84,6 +86,9 @@ bool HDBGame::init() { if (!_lua->init()) { error("LuaScript::init: Couldn't load the GLOBAL_LUA code."); } + if (!_window->init()) { + error("Window::init: Couldn't initialize Window"); + } // REMOVE: Putting this here since Menu hasn't been implemented yet. // Defaults the game into Action Mode |