diff options
-rw-r--r-- | host.c | 2 | ||||
-rw-r--r-- | peer.c | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -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)); } @@ -192,8 +192,6 @@ enet_peer_receive (ENetPeer * peer, enet_uint8 channelID) { if (incomingCommand -> reliableSequenceNumber != channel -> incomingReliableSequenceNumber) incomingCommand = NULL; - else - channel -> incomingUnreliableSequenceNumber = incomingCommand -> unreliableSequenceNumber; } } |