Network/TcpClient: Fix empty packets being received with an invalid netcode
Former-commit-id: e2485cc722c8baab43b78745af697536e996d1b3 [formerly c5396e006fda4a2c6e8afeb165c295312e35820d] [formerly 8810c67dd016aa11af2f81709a1047ac94f744c7 [formerly d53cab8d579848e02393b4c3c924e48c484d27eb]] Former-commit-id: 162f4e2a61ef51475ff0738d0cd3e1a5dfc44419 [formerly 00a51644441eea646fb9ac03bdc4885283460a0c] Former-commit-id: e5387fa08d184a34bac529da305c396ff2a85cf1
This commit is contained in:
parent
5ded56c6e5
commit
87437e80af
|
|
@ -265,7 +265,7 @@ namespace Nz
|
|||
if (packetSize == 0)
|
||||
{
|
||||
// Special case: our packet carry no data
|
||||
packet->Reset(packetSize);
|
||||
packet->Reset(m_pendingPacket.netcode);
|
||||
|
||||
// And reset every state
|
||||
m_pendingPacket.data.Clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue