diff options
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r-- | engines/cge2/cge2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp index ef4646194e..7c4d1f13c8 100644 --- a/engines/cge2/cge2.cpp +++ b/engines/cge2/cge2.cpp @@ -59,6 +59,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _commandHandlerTurbo = nullptr; _infoLine = nullptr; _mouse = nullptr; + _keyboard = nullptr; _talk = nullptr; for (int i = 0; i < kMaxPoint; i++) _point[i] = nullptr; @@ -97,6 +98,7 @@ void CGE2Engine::init() { _commandHandlerTurbo = new CommandHandler(this, true); _infoLine = new InfoLine(this, kInfoW); _mouse = new Mouse(this); + _keyboard = new Keyboard(this); for (int i = 0; i < kMaxPoint; i++) _point[i] = new V3D(); } @@ -123,6 +125,7 @@ void CGE2Engine::deinit() { delete _commandHandlerTurbo; delete _infoLine; delete _mouse; + delete _keyboard; if (_talk != nullptr) delete _talk; for (int i = 0; i < kMaxPoint; i++) { |