diff options
Diffstat (limited to 'engines/xeen/xeen.cpp')
-rw-r--r-- | engines/xeen/xeen.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/xeen/xeen.cpp b/engines/xeen/xeen.cpp index 73f0c24d9f..cf60aa4555 100644 --- a/engines/xeen/xeen.cpp +++ b/engines/xeen/xeen.cpp @@ -35,10 +35,14 @@ namespace Xeen { XeenEngine::XeenEngine(OSystem *syst, const XeenGameDescription *gameDesc) : _gameDescription(gameDesc), Engine(syst), _randomSource("Xeen") { _debugger = nullptr; + _events = nullptr; + _screen = nullptr; } XeenEngine::~XeenEngine() { delete _debugger; + delete _events; + delete _screen; } void XeenEngine::initialize() { @@ -50,6 +54,8 @@ void XeenEngine::initialize() { // Create sub-objects of the engine _debugger = new Debugger(this); + _events = new EventsManager(this); + _screen = new Screen(this); Resources::init(this); // Set graphics mode |