summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorZaba999 <qrwfw5rp>2012-10-02 21:44:14 +0200
committerZaba999 <qrwfw5rp>2012-10-02 21:44:14 +0200
commit4b7ca3f26254f6692d1b17eb0df151382bb3b851 (patch)
tree2515a2cbb2672b16d0c0a9d0f1af7a3aa91c06db /src/common
parentac1472621a101205babd33020e5530fa32580eff (diff)
downloadcolobot-4b7ca3f26254f6692d1b17eb0df151382bb3b851.tar.gz
colobot-4b7ca3f26254f6692d1b17eb0df151382bb3b851.tar.bz2
colobot-4b7ca3f26254f6692d1b17eb0df151382bb3b851.zip
Further work on saving profile and directory listing.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/profile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/profile.h b/src/common/profile.h
index ed948ff..facb414 100644
--- a/src/common/profile.h
+++ b/src/common/profile.h
@@ -107,6 +107,6 @@ class CProfile : public CSingleton<CProfile>
};
//! Global function to get profile instance
-inline CProfile* GetProfile() {
- return CProfile::GetInstancePointer();
+inline CProfile & GetProfile() {
+ return *CProfile::GetInstancePointer();
}