aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/hdb.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-06-27 04:21:48 +0530
committerEugene Sandulenko2019-09-03 17:17:01 +0200
commit1b7034cd87e2caed6eef9816a1e026519ba3135d (patch)
tree42ab1b9ccd323752ebb40d58a831149adc68b9bb /engines/hdb/hdb.cpp
parente3808675d2ccbeb629da24623fc91ba733199701 (diff)
downloadscummvm-rg350-1b7034cd87e2caed6eef9816a1e026519ba3135d.tar.gz
scummvm-rg350-1b7034cd87e2caed6eef9816a1e026519ba3135d.tar.bz2
scummvm-rg350-1b7034cd87e2caed6eef9816a1e026519ba3135d.zip
HDB: Add _input subsytem and init it
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r--engines/hdb/hdb.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 7eabd00ca2..238033c1bb 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;
+ _input = new Input;
_window = new Window;
_rnd = new Common::RandomSource("hdb");
@@ -61,6 +62,7 @@ HDBGame::~HDBGame() {
delete _lua;
delete _map;
delete _ai;
+ delete _input;
delete _window;
delete _rnd;
@@ -80,6 +82,9 @@ bool HDBGame::init() {
if (!_drawMan->init()) {
error("DrawMan::init: Couldn't initialize DrawMan");
}
+ if (!_input->init()) {
+ error("Input::init: Couldn't initialize Input");
+ }
if (!_ai->init()) {
error("AI::init: Couldn't initialize AI");
}