Fix bug setting channel window size.
authorLars Hofhansl <larsh@apache.org>
Fri, 13 Jul 2018 12:02:08 +0000 (05:02 -0700)
committerLars Hofhansl <larsh@apache.org>
Fri, 13 Jul 2018 12:02:08 +0000 (05:02 -0700)
src/network/connection.cpp

index a9f8ee082e065958dd3820cc9f1249651e17a665..d4f0b63412d41ab59240185cff75a7f96d8b3b22 100644 (file)
@@ -921,7 +921,7 @@ void UDPPeer::setNonLegacyPeer()
        m_legacy_peer = false;
        for(unsigned int i=0; i< CHANNEL_COUNT; i++)
        {
-               channels->setWindowSize(g_settings->getU16("max_packets_per_iteration"));
+               channels[i].setWindowSize(g_settings->getU16("max_packets_per_iteration"));
        }
 }