aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wintermute/wintermute.cpp4
-rw-r--r--engines/wintermute/wintermute.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp
index ed8054885d..7fa59930d5 100644
--- a/engines/wintermute/wintermute.cpp
+++ b/engines/wintermute/wintermute.cpp
@@ -41,6 +41,8 @@
namespace WinterMute {
+WinterMuteEngine *g_wintermute;
+
WinterMuteEngine::WinterMuteEngine(OSystem *syst)
: Engine(syst) {
// Put your engine in a sane state, but do nothing big yet;
@@ -62,6 +64,8 @@ WinterMuteEngine::WinterMuteEngine(OSystem *syst)
debug("WinterMuteEngine::WinterMuteEngine");
_game = NULL;
+
+ g_wintermute = this;
}
WinterMuteEngine::~WinterMuteEngine() {
diff --git a/engines/wintermute/wintermute.h b/engines/wintermute/wintermute.h
index 1a03de5553..015f31c2bb 100644
--- a/engines/wintermute/wintermute.h
+++ b/engines/wintermute/wintermute.h
@@ -62,6 +62,8 @@ public:
virtual ~Console(void) {}
};
+extern WinterMuteEngine *g_wintermute;
+
} // End of namespace Wintermute
#endif