From 8d629cf65bedde30f94a6b611a8ce339213f9774 Mon Sep 17 00:00:00 2001 From: Lars Hofhansl Date: Fri, 13 Jul 2018 05:02:08 -0700 Subject: [PATCH] Fix bug setting channel window size. --- src/network/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); } } -- 2.25.1