1
0

Add Null check to SendBlockTo

Fixes CID 43611
This commit is contained in:
worktycho 2014-06-26 18:30:02 +01:00
parent dad0037f98
commit b832a202ab

View File

@ -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());
}