summaryrefslogtreecommitdiff
path: root/src/network/core/tcp.cpp
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-04-18 14:42:06 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-04-25 21:27:54 +0200
commit8b302761d4ca51f41eaff4097c9afa4f3aec5ec5 (patch)
treeca13d813a2793b5f1d562ce4e9434138aceb523c /src/network/core/tcp.cpp
parent97288bc286bf4b4b92cf29bcd051c49b2299624b (diff)
downloadopenttd-8b302761d4ca51f41eaff4097c9afa4f3aec5ec5.tar.xz
Codechange: allow different limits in packet sizes
Diffstat (limited to 'src/network/core/tcp.cpp')
-rw-r--r--src/network/core/tcp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp
index a749b6195..be70efdd2 100644
--- a/src/network/core/tcp.cpp
+++ b/src/network/core/tcp.cpp
@@ -126,7 +126,7 @@ Packet *NetworkTCPSocketHandler::ReceivePacket()
if (!this->IsConnected()) return nullptr;
if (this->packet_recv == nullptr) {
- this->packet_recv = new Packet(this);
+ this->packet_recv = new Packet(this, SEND_MTU);
}
Packet *p = this->packet_recv;