summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-08-31 21:40:38 +0200
committerGitHub <noreply@github.com>2021-08-31 21:40:38 +0200
commit63116bd59f03182eadc529acee333a753e2046c4 (patch)
tree81619c3b08c98fb6f62e13ed053b76abbce42ea9 /src
parent2c05412d722903748bf928fd201b15cdad586a94 (diff)
downloadopenttd-63116bd59f03182eadc529acee333a753e2046c4.tar.xz
Fix a2051bad: SendCmdNames only sent one name per packet (#9528)
Diffstat (limited to 'src')
-rw-r--r--src/network/network_admin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_admin.cpp b/src/network/network_admin.cpp
index b8801b215..8ccb6361d 100644
--- a/src/network/network_admin.cpp
+++ b/src/network/network_admin.cpp
@@ -594,7 +594,7 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCmdNames()
/* Should COMPAT_MTU be exceeded, start a new packet
* (magic 5: 1 bool "more data" and one uint16 "command id", one
* byte for string '\0' termination and 1 bool "no more data" */
- if (p->CanWriteToPacket(strlen(cmdname) + 5)) {
+ if (!p->CanWriteToPacket(strlen(cmdname) + 5)) {
p->Send_bool(false);
this->SendPacket(p);