diff options
-rw-r--r-- | include/enet/enet.h | 8 | ||||
-rw-r--r-- | peer.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index 72e36c8..03a8f29 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -188,10 +188,10 @@ enum typedef struct _ENetChannel { - enet_uint32 outgoingReliableSequenceNumber; - enet_uint32 outgoingUnreliableSequenceNumber; - enet_uint32 incomingReliableSequenceNumber; - enet_uint32 incomingUnreliableSequenceNumber; + enet_uint16 outgoingReliableSequenceNumber; + enet_uint16 outgoingUnreliableSequenceNumber; + enet_uint16 incomingReliableSequenceNumber; + enet_uint16 incomingUnreliableSequenceNumber; ENetList incomingReliableCommands; ENetList incomingUnreliableCommands; } ENetChannel; @@ -200,7 +200,7 @@ enet_peer_receive (ENetPeer * peer, enet_uint8 channelID) incomingCommand = (ENetIncomingCommand *) enet_list_front (& channel -> incomingReliableCommands); if (incomingCommand -> fragmentsRemaining > 0 || - incomingCommand -> reliableSequenceNumber != channel -> incomingReliableSequenceNumber + 1) + incomingCommand -> reliableSequenceNumber != (enet_uint16) (channel -> incomingReliableSequenceNumber + 1)) return NULL; channel -> incomingReliableSequenceNumber = incomingCommand -> reliableSequenceNumber; |