aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--host.c2
-rw-r--r--peer.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/host.c b/host.c
index 70df4c3..ff703ce 100644
--- a/host.c
+++ b/host.c
@@ -170,7 +170,7 @@ enet_host_connect (ENetHost * host, const ENetAddress * address, size_t channelC
enet_list_clear (& channel -> incomingReliableCommands);
enet_list_clear (& channel -> incomingUnreliableCommands);
- channel -> currentReliableWindow = 0;
+ channel -> usedReliableWindows = 0;
memset (channel -> reliableWindows, 0, sizeof (channel -> reliableWindows));
}
diff --git a/peer.c b/peer.c
index 442e242..11483f8 100644
--- a/peer.c
+++ b/peer.c
@@ -192,8 +192,6 @@ enet_peer_receive (ENetPeer * peer, enet_uint8 channelID)
{
if (incomingCommand -> reliableSequenceNumber != channel -> incomingReliableSequenceNumber)
incomingCommand = NULL;
- else
- channel -> incomingUnreliableSequenceNumber = incomingCommand -> unreliableSequenceNumber;
}
}