summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2016-08-21 17:44:25 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2016-08-21 17:44:25 +0200
commit71035a8706aa89d6cd12f25fea5191fb35787406 (patch)
treeb7bcd071756ce9cc0ac620292fc4f80225913471 /src/Root.cpp
parenttest (diff)
downloadcuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar
cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.gz
cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.bz2
cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.lz
cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.xz
cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.tar.zst
cuberite-71035a8706aa89d6cd12f25fea5191fb35787406.zip
Diffstat (limited to 'src/Root.cpp')
-rw-r--r--src/Root.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index ec31e57a2..3749aaf64 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -572,7 +572,7 @@ bool cRoot::ForEachWorld(cWorldListCallback & a_Callback)
{
for (const auto & World : m_WorldsByName)
{
- if (a_Callback.Item(World.second.get()))
+ if (a_Callback.Item(World.second))
{
return false;
}
@@ -960,7 +960,7 @@ void cRoot::LogChunkStats(cCommandOutputCallback & a_Output)
int SumMem = 0;
for (const auto & WorldEntry : m_WorldsByName)
{
- auto World = WorldEntry.second.get();
+ auto World = WorldEntry.second;
int NumInGenerator = World->GetGeneratorQueueLength();
int NumInSaveQueue = static_cast<int>(World->GetStorageSaveQueueLength());
int NumInLoadQueue = static_cast<int>(World->GetStorageLoadQueueLength());