summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-18 22:33:55 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-18 22:33:55 +0200
commit2874bf73be010462d060553c1d9a358566a5c56a (patch)
treea56bf2277606e0a55932cc0b40b9516e366278bd /src/Root.cpp
parentInfoDump: Fixed trailing whitespace. (diff)
parentFixed failure for cRankManager to restart (diff)
downloadcuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar
cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.gz
cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.bz2
cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.lz
cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.xz
cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.zst
cuberite-2874bf73be010462d060553c1d9a358566a5c56a.zip
Diffstat (limited to '')
-rw-r--r--src/Root.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index 2d08c2c70..02455518c 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -155,7 +155,8 @@ void cRoot::Start(void)
m_WebAdmin->Init();
LOGD("Loading settings...");
- m_RankManager.Initialize(m_MojangAPI);
+ m_RankManager = new cRankManager();
+ m_RankManager->Initialize(m_MojangAPI);
m_CraftingRecipes = new cCraftingRecipes;
m_FurnaceRecipe = new cFurnaceRecipe();