summaryrefslogtreecommitdiffstats
path: root/source/ChunkSender.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/ChunkSender.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/ChunkSender.cpp b/source/ChunkSender.cpp
index f3bc439d1..661e0e931 100644
--- a/source/ChunkSender.cpp
+++ b/source/ChunkSender.cpp
@@ -145,7 +145,10 @@ void cChunkSender::SendChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ, cClientHa
ASSERT(m_World != NULL);
// Prepare MapChunk packets:
- m_World->GetChunkData(a_ChunkX, a_ChunkY, a_ChunkZ, this);
+ if( !m_World->GetChunkData(a_ChunkX, a_ChunkY, a_ChunkZ, *this) )
+ {
+ return;
+ }
cPacket_PreChunk PreChunk(a_ChunkX, a_ChunkZ, true);
cPacket_MapChunk MapChunk(a_ChunkX, a_ChunkY, a_ChunkZ, m_BlockData);