summaryrefslogtreecommitdiffstats
path: root/src/MapManager.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-20 22:55:07 +0200
committerarchshift <admin@archshift.com>2014-10-23 05:12:49 +0200
commita26541a7c3ced0569098edd0aae61c097c2912f4 (patch)
tree4b7bea204c0ddd18bb4f95357f9eb77590bc2e8d /src/MapManager.cpp
parentComposableGenerator: Removed nullptr initializers. (diff)
downloadcuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.gz
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.bz2
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.lz
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.xz
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.zst
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.zip
Diffstat (limited to 'src/MapManager.cpp')
-rw-r--r--src/MapManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/MapManager.cpp b/src/MapManager.cpp
index e7df75118..2a3ab192b 100644
--- a/src/MapManager.cpp
+++ b/src/MapManager.cpp
@@ -15,7 +15,7 @@
cMapManager::cMapManager(cWorld * a_World)
: m_World(a_World)
{
- ASSERT(m_World != NULL);
+ ASSERT(m_World != nullptr);
}
@@ -27,7 +27,7 @@ bool cMapManager::DoWithMap(int a_ID, cMapCallback & a_Callback)
cCSLock Lock(m_CS);
cMap * Map = GetMapData(a_ID);
- if (Map == NULL)
+ if (Map == nullptr)
{
return false;
}
@@ -68,7 +68,7 @@ cMap * cMapManager::GetMapData(unsigned int a_ID)
}
else
{
- return NULL;
+ return nullptr;
}
}
@@ -83,7 +83,7 @@ cMap * cMapManager::CreateMap(int a_CenterX, int a_CenterY, int a_Scale)
if (m_MapData.size() >= 65536)
{
LOGWARN("Could not craft map - Too many maps in use");
- return NULL;
+ return nullptr;
}
cMap Map((unsigned)m_MapData.size(), a_CenterX, a_CenterY, m_World, a_Scale);