aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--peer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/peer.c b/peer.c
index 1d6bab9..2cba2a6 100644
--- a/peer.c
+++ b/peer.c
@@ -642,6 +642,9 @@ enet_peer_queue_incoming_command (ENetPeer * peer, const ENetProtocol * command,
if (incomingCommand -> reliableSequenceNumber < reliableSequenceNumber)
break;
+ if (incomingCommand -> reliableSequenceNumber > reliableSequenceNumber)
+ continue;
+
if (incomingCommand -> unreliableSequenceNumber <= unreliableSequenceNumber)
{
if (incomingCommand -> unreliableSequenceNumber < unreliableSequenceNumber)