Skip to content

Commit

Permalink
Update Connection.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Extollite committed Oct 16, 2020
1 parent b1a28cf commit c523e00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/RakNetSwift/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,12 @@ public class Connection {
let pk = Datagram()
pk.sequenceNumber = UInt32(self.sendSequenceNumber)
self.sendSequenceNumber += 1

if packet.reliability!.id >= 2{
self.messageIndex += 1
packet.messageIndex = self.messageIndex
}

pk.packets.append(packet)
if (packet.needACK) {
packet.needACK = false
Expand Down

0 comments on commit c523e00

Please sign in to comment.