aboutsummaryrefslogtreecommitdiff
path: root/engines/gargoyle/gargoyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gargoyle/gargoyle.cpp')
-rw-r--r--engines/gargoyle/gargoyle.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/gargoyle/gargoyle.cpp b/engines/gargoyle/gargoyle.cpp
index a7b819c6b6..2ca14bf897 100644
--- a/engines/gargoyle/gargoyle.cpp
+++ b/engines/gargoyle/gargoyle.cpp
@@ -36,9 +36,12 @@
namespace Gargoyle {
+GargoyleEngine *g_vm;
+
GargoyleEngine::GargoyleEngine(OSystem *syst, const GargoyleGameDescription *gameDesc) :
_gameDescription(gameDesc), Engine(syst), _random("Gargoyle"), _conf(nullptr),
_events(nullptr), _screen(nullptr), _windows(nullptr) {
+ g_vm = this;
}
GargoyleEngine::~GargoyleEngine() {
@@ -60,8 +63,8 @@ void GargoyleEngine::initialize() {
_screen = new Graphics::Screen();
_conf = new Conf();
_events = new Events();
- _streams = new Streams(this);
- _windows = new Windows(this, _screen);
+ _streams = new Streams();
+ _windows = new Windows(_screen);
}
Common::Error GargoyleEngine::run() {