summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-07-13 17:10:57 +0200
committerMattes D <github@xoft.cz>2014-07-13 17:10:57 +0200
commit69eaa55b553af1193f44b397853468ad0e8da06b (patch)
treebe60980e3e0116bb1ef0495492cfa47823ff69fd /src/ChunkMap.cpp
parentTolua driver: Fixed wrong indentation. (diff)
parentAdded parenthasies (diff)
downloadcuberite-69eaa55b553af1193f44b397853468ad0e8da06b.tar
cuberite-69eaa55b553af1193f44b397853468ad0e8da06b.tar.gz
cuberite-69eaa55b553af1193f44b397853468ad0e8da06b.tar.bz2
cuberite-69eaa55b553af1193f44b397853468ad0e8da06b.tar.lz
cuberite-69eaa55b553af1193f44b397853468ad0e8da06b.tar.xz
cuberite-69eaa55b553af1193f44b397853468ad0e8da06b.tar.zst
cuberite-69eaa55b553af1193f44b397853468ad0e8da06b.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 b24eead2d..a12be04cf 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1549,7 +1549,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());
}