Use the outgoing split sequence number for every outgoing packet (#4864)
authorRogier-5 <rogier777@gmail.com>
Thu, 29 Dec 2016 12:44:47 +0000 (13:44 +0100)
committerNer'zhul <nerzhul@users.noreply.github.com>
Thu, 29 Dec 2016 12:44:47 +0000 (13:44 +0100)
(instead of the last incoming sequence number...)

Fixes #4848

src/network/connection.cpp

index b711cae111b1b20a58c24efd6d38df3652975749..e11b4a953d55f9927044d1f9a85bd138491d53c5 100644 (file)
@@ -1237,7 +1237,7 @@ void UDPPeer::RunCommandQueues(
 u16 UDPPeer::getNextSplitSequenceNumber(u8 channel)
 {
        assert(channel < CHANNEL_COUNT); // Pre-condition
-       return channels[channel].readNextIncomingSeqNum();
+       return channels[channel].readNextSplitSeqNum();
 }
 
 void UDPPeer::setNextSplitSequenceNumber(u8 channel, u16 seqnum)