1
0

Merge pull request #1172 from mc-server/coverity_fixes

Coverity fixes
This commit is contained in:
Mattes D
2014-07-13 17:10:57 +02:00
3 changed files with 14 additions and 4 deletions

View File

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