diff --git a/src/network/networkpacket.cpp b/src/network/networkpacket.cpp index 2b308f334e2f94211cd9e86d36bd833d9917724d..388afc18e7c5f628e1f0bc3a50590e6327ed776f 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);