diff options
author | worktycho <work.tycho@gmail.com> | 2014-06-26 19:30:02 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-06-26 19:30:02 +0200 |
commit | b832a202ab052b0544ca26225c4fe771cf31ede7 (patch) | |
tree | effb69779521cf087726f3849ea24988a0745abf | |
parent | Bettered zombie and skeleton AI (diff) | |
download | cuberite-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.cpp | 2 |
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()); } |