summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-26 11:00:46 +0100
committerMattes D <github@xoft.cz>2014-11-26 11:00:46 +0100
commita9e77fe7daa0874cb67d055b34d2a0efee6adbd3 (patch)
tree69b12622eb290b8a3ab07b0a70afc7f68dfa0f67 /src/Root.h
parentWindows: Fixed builds with LeakFinder enabled. (diff)
downloadcuberite-a9e77fe7daa0874cb67d055b34d2a0efee6adbd3.tar
cuberite-a9e77fe7daa0874cb67d055b34d2a0efee6adbd3.tar.gz
cuberite-a9e77fe7daa0874cb67d055b34d2a0efee6adbd3.tar.bz2
cuberite-a9e77fe7daa0874cb67d055b34d2a0efee6adbd3.tar.lz
cuberite-a9e77fe7daa0874cb67d055b34d2a0efee6adbd3.tar.xz
cuberite-a9e77fe7daa0874cb67d055b34d2a0efee6adbd3.tar.zst
cuberite-a9e77fe7daa0874cb67d055b34d2a0efee6adbd3.zip
Diffstat (limited to '')
-rw-r--r--src/Root.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Root.h b/src/Root.h
index ec6b83fcc..29753a47d 100644
--- a/src/Root.h
+++ b/src/Root.h
@@ -86,7 +86,7 @@ public:
cPluginManager * GetPluginManager (void) { return m_PluginManager; } // tolua_export
cAuthenticator & GetAuthenticator (void) { return m_Authenticator; }
cMojangAPI & GetMojangAPI (void) { return m_MojangAPI; }
- cRankManager * GetRankManager (void) { return m_RankManager; }
+ cRankManager * GetRankManager (void) { return m_RankManager.get(); }
/** Queues a console command for execution through the cServer class.
The command will be executed in the tick thread
@@ -188,7 +188,9 @@ private:
cPluginManager * m_PluginManager;
cAuthenticator m_Authenticator;
cMojangAPI m_MojangAPI;
- cRankManager * m_RankManager;
+
+ std::unique_ptr<cRankManager> m_RankManager;
+
cHTTPServer m_HTTPServer;
bool m_bStop;