diff options
author | Patric Stout <truebrain@openttd.org> | 2021-08-31 21:40:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 21:40:38 +0200 |
commit | 63116bd59f03182eadc529acee333a753e2046c4 (patch) | |
tree | 81619c3b08c98fb6f62e13ed053b76abbce42ea9 /src | |
parent | 2c05412d722903748bf928fd201b15cdad586a94 (diff) | |
download | openttd-63116bd59f03182eadc529acee333a753e2046c4.tar.xz |
Fix a2051bad: SendCmdNames only sent one name per packet (#9528)
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_admin.cpp | 2 |
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); |