Add Null check to SendBlockTo
Fixes CID 43611
This commit is contained in:
parent
dad0037f98
commit
b832a202ab
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user