aboutsummaryrefslogtreecommitdiff
path: root/common/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.cpp')
-rw-r--r--common/system.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/system.cpp b/common/system.cpp
index fbd9e0a7cd..9c465a14fb 100644
--- a/common/system.cpp
+++ b/common/system.cpp
@@ -58,10 +58,10 @@ static OSystem *createSystem() {
#endif
}
-OSystem *OSystem::instance() {
+OSystem &OSystem::instance() {
if (!s_system)
s_system = createSystem();
- return s_system;
+ return *s_system;
}