summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-06 22:48:45 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-06 22:48:45 +0100
commit3d0eced7e7284506e91d94ff01470d64ee6a98a9 (patch)
tree11f8e49cc3771a189392492f653074a6f394fa5d /source
parentFixed rev 373 not compiling on linux (diff)
downloadcuberite-3d0eced7e7284506e91d94ff01470d64ee6a98a9.tar
cuberite-3d0eced7e7284506e91d94ff01470d64ee6a98a9.tar.gz
cuberite-3d0eced7e7284506e91d94ff01470d64ee6a98a9.tar.bz2
cuberite-3d0eced7e7284506e91d94ff01470d64ee6a98a9.tar.lz
cuberite-3d0eced7e7284506e91d94ff01470d64ee6a98a9.tar.xz
cuberite-3d0eced7e7284506e91d94ff01470d64ee6a98a9.tar.zst
cuberite-3d0eced7e7284506e91d94ff01470d64ee6a98a9.zip
Diffstat (limited to '')
-rw-r--r--source/ChunkSender.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/ChunkSender.cpp b/source/ChunkSender.cpp
index 47d84d166..3a664962d 100644
--- a/source/ChunkSender.cpp
+++ b/source/ChunkSender.cpp
@@ -186,7 +186,11 @@ void cChunkSender::BlockData(const char * a_Data)
void cChunkSender::BlockEntity(cBlockEntity * a_Entity)
{
- m_Packets.push_back(a_Entity->GetPacket());
+ cPacket * Packet = a_Entity->GetPacket();
+ if (Packet != NULL)
+ {
+ m_Packets.push_back(Packet);
+ }
}