diff options
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 494d1166bd..430fd8d82c 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -43,6 +43,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst _systemInit = false; g_hdb = this; _fileMan = new FileMan; + _drawMan = new DrawMan; _lua = new LuaScript; _map = new Map; //mapLoader = new MapLoader; @@ -54,6 +55,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst HDBGame::~HDBGame() { delete _console; delete _fileMan; + delete _drawMan; delete _lua; delete _map; //delete mapLoader; @@ -71,6 +73,10 @@ bool HDBGame::init() { error("FileMan::openMPC: Cannot find the hyperspace.mpc data file."); return false; } + if (!_drawMan->init()) { + error("DrawMan::init: Couldn't initialize DrawMan"); + return false; + } if (!_lua->init()) { error("LuaScript::init: Couldn't load the GLOBAL_LUA code."); return false; |