summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-06-26 19:30:02 +0200
committerworktycho <work.tycho@gmail.com>2014-06-26 19:30:02 +0200
commitb832a202ab052b0544ca26225c4fe771cf31ede7 (patch)
treeeffb69779521cf087726f3849ea24988a0745abf /src/ChunkMap.cpp
parentBettered zombie and skeleton AI (diff)
downloadcuberite-b832a202ab052b0544ca26225c4fe771cf31ede7.tar
cuberite-b832a202ab052b0544ca26225c4fe771cf31ede7.tar.gz
cuberite-b832a202ab052b0544ca26225c4fe771cf31ede7.tar.bz2
cuberite-b832a202ab052b0544ca26225c4fe771cf31ede7.tar.lz
cuberite-b832a202ab052b0544ca26225c4fe771cf31ede7.tar.xz
cuberite-b832a202ab052b0544ca26225c4fe771cf31ede7.tar.zst
cuberite-b832a202ab052b0544ca26225c4fe771cf31ede7.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index d2ccca94e..f0222c0f5 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1530,7 +1530,7 @@ void cChunkMap::SendBlockTo(int a_X, int a_Y, int a_Z, cPlayer * a_Player)
cCSLock Lock(m_CSLayers);
cChunkPtr Chunk = GetChunk(ChunkX, ZERO_CHUNK_Y, ChunkZ);
- if (Chunk->IsValid())
+ if (Chunk != NULL && Chunk->IsValid())
{
Chunk->SendBlockTo(a_X, a_Y, a_Z, a_Player->GetClientHandle());
}