aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.c b/peer.c
index 2cba2a6..f9d73fc 100644
--- a/peer.c
+++ b/peer.c
@@ -482,7 +482,7 @@ enet_peer_queue_acknowledgement (ENetPeer * peer, const ENetProtocol * command,
if (command -> header.reliableSequenceNumber < channel -> incomingReliableSequenceNumber)
reliableWindow += ENET_PEER_RELIABLE_WINDOWS;
- if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1)
+ if (reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1 && reliableWindow <= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS)
return NULL;
}