From: Lars Hofhansl Date: Fri, 13 Jul 2018 12:02:08 +0000 (-0700) Subject: Fix bug setting channel window size. X-Git-Tag: 5.0.0~302 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8d629cf65bedde30f94a6b611a8ce339213f9774;p=oweals%2Fminetest.git Fix bug setting channel window size. --- 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")); } }