diff options
| -rw-r--r-- | engines/hdb/hdb.cpp | 6 | ||||
| -rw-r--r-- | engines/hdb/hdb.h | 1 | 
2 files changed, 7 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; diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index b31d9d7064..8d9aca9554 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -83,6 +83,7 @@ public:  	*/  	FileMan *_fileMan; +	DrawMan *_drawMan;  	LuaScript *_lua;  	Map *_map; | 
