summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-12-17 00:18:59 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-12-17 00:18:59 +0100
commit8d9049603bba72f55f1fa9e47f281bb7d8bfca37 (patch)
treefa2bc45598eaf41da3a88960c1b4850f93c7b7f7 /src/BlockEntities
parentRemoved test (diff)
downloadcuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.gz
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.bz2
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.lz
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.xz
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.zst
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.zip
Diffstat (limited to 'src/BlockEntities')
-rw-r--r--src/BlockEntities/MobSpawnerEntity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockEntities/MobSpawnerEntity.cpp b/src/BlockEntities/MobSpawnerEntity.cpp
index 5edee888a..a7d29638a 100644
--- a/src/BlockEntities/MobSpawnerEntity.cpp
+++ b/src/BlockEntities/MobSpawnerEntity.cpp
@@ -150,7 +150,7 @@ void cMobSpawnerEntity::SpawnEntity(void)
int RelZ = (int) (m_RelZ + (double)(Random.NextFloat() - Random.NextFloat()) * 4.0);
cChunk * Chunk = a_Chunk->GetRelNeighborChunkAdjustCoords(RelX, RelZ);
- if ((Chunk == NULL) || !Chunk->IsValid())
+ if ((Chunk == nullptr) || !Chunk->IsValid())
{
continue;
}
@@ -162,7 +162,7 @@ void cMobSpawnerEntity::SpawnEntity(void)
double PosZ = Chunk->GetPosZ() * cChunkDef::Width + RelZ;
cMonster * Monster = cMonster::NewMonsterFromType(m_MobType);
- if (Monster == NULL)
+ if (Monster == nullptr)
{
continue;
}