diff options
-rw-r--r-- | src/network/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp index a9f8ee082..d4f0b6341 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -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")); } } |