aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--peer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/peer.c b/peer.c
index 9513728..5b86b23 100644
--- a/peer.c
+++ b/peer.c
@@ -517,7 +517,9 @@ enet_peer_queue_outgoing_command (ENetPeer * peer, const ENetProtocol * command,
else
if (command -> header.flags & ENET_PROTOCOL_FLAG_UNSEQUENCED)
{
- outgoingCommand -> reliableSequenceNumber = channel -> outgoingReliableSequenceNumber;
+ ++ channel -> outgoingUnsequencedGroup;
+
+ outgoingCommand -> reliableSequenceNumber = 0;
outgoingCommand -> unreliableSequenceNumber = 0;
}
else