mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix for commit 87dcee6
It uses the wrong variable and only covers some use cases. This change covers all use cases.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user