aboutsummaryrefslogtreecommitdiff
path: root/common/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.h')
-rw-r--r--common/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/system.h b/common/system.h
index b1d33e34b8..2a3b0fafc1 100644
--- a/common/system.h
+++ b/common/system.h
@@ -47,7 +47,7 @@ public:
* not a real class (and thus it isn't based on our Singleton template).
* @return the pointer to the (singleton) OSystem instance
*/
- static OSystem *instance();
+ static OSystem &instance();
public:
@@ -687,7 +687,7 @@ public:
};
/** The global OSystem instance. Inited in main(). */
-#define g_system (OSystem::instance())
+#define g_system (&OSystem::instance())
namespace Common {