aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgregorycu <gregory.currie@gmail.com>2016-01-04 16:15:50 +1100
committerLoic Blot <loic.blot@unix-experience.fr>2016-01-04 07:50:39 +0100
commite7e9171f37730c34dd687aa2b9ca5392aa41e46b (patch)
treefd14144b5433af5af5522277b5e11f6d8e1b3824 /src
parent09a6910dc78af7e403e3d68bed61199ecb5e0377 (diff)
downloadminetest-e7e9171f37730c34dd687aa2b9ca5392aa41e46b.tar.gz
minetest-e7e9171f37730c34dd687aa2b9ca5392aa41e46b.tar.bz2
minetest-e7e9171f37730c34dd687aa2b9ca5392aa41e46b.zip
Fix for commit 87dcee6 It uses the wrong variable and only covers some use cases. This change covers all use cases.
Diffstat (limited to 'src')
-rw-r--r--src/network/networkpacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkpacket.cpp b/src/network/networkpacket.cpp
index 2b308f334..388afc18e 100644
--- a/src/network/networkpacket.cpp
+++ b/src/network/networkpacket.cpp
@@ -77,7 +77,7 @@ void NetworkPacket::putRawString(const char* src, u32 len)
m_data.resize(m_datasize);
}
- if (m_datasize == 0)
+ if (len == 0)
return;
memcpy(&m_data[m_read_offset], src, len);