summaryrefslogtreecommitdiffstats
path: root/src/Root.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-12-21 15:31:20 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-12-21 15:31:20 +0100
commit0d6672bf5d976f86f2746a120acd3c19c9d4c8a2 (patch)
treea87a18f33cc8fd07be5357801e90731079bcdab5 /src/Root.h
parentMerge pull request #1682 from Masy98/entities (diff)
downloadcuberite-0d6672bf5d976f86f2746a120acd3c19c9d4c8a2.tar
cuberite-0d6672bf5d976f86f2746a120acd3c19c9d4c8a2.tar.gz
cuberite-0d6672bf5d976f86f2746a120acd3c19c9d4c8a2.tar.bz2
cuberite-0d6672bf5d976f86f2746a120acd3c19c9d4c8a2.tar.lz
cuberite-0d6672bf5d976f86f2746a120acd3c19c9d4c8a2.tar.xz
cuberite-0d6672bf5d976f86f2746a120acd3c19c9d4c8a2.tar.zst
cuberite-0d6672bf5d976f86f2746a120acd3c19c9d4c8a2.zip
Diffstat (limited to '')
-rw-r--r--src/Root.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Root.h b/src/Root.h
index 2c512a5df..fdaf444bd 100644
--- a/src/Root.h
+++ b/src/Root.h
@@ -86,7 +86,7 @@ public:
cWebAdmin * GetWebAdmin (void) { return m_WebAdmin; } // tolua_export
cPluginManager * GetPluginManager (void) { return m_PluginManager; } // tolua_export
cAuthenticator & GetAuthenticator (void) { return m_Authenticator; }
- cMojangAPI & GetMojangAPI (void) { return m_MojangAPI; }
+ cMojangAPI & GetMojangAPI (void) { return *m_MojangAPI; }
cRankManager * GetRankManager (void) { return m_RankManager.get(); }
/** Queues a console command for execution through the cServer class.
@@ -191,7 +191,7 @@ private:
cWebAdmin * m_WebAdmin;
cPluginManager * m_PluginManager;
cAuthenticator m_Authenticator;
- cMojangAPI m_MojangAPI;
+ cMojangAPI * m_MojangAPI;
std::unique_ptr<cRankManager> m_RankManager;