diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-29 16:16:51 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-29 19:02:18 +0200 |
commit | ef991b1772f5f8b4874f76ea715a9a95811ad979 (patch) | |
tree | 1eec8f86826d2865bceb31612843dba05f237d86 /src/network/network_server.cpp | |
parent | 2e136285e1dfb4435c11769bf7cabb1ec2057e08 (diff) | |
download | openttd-ef991b1772f5f8b4874f76ea715a9a95811ad979.tar.xz |
Codechange: [Network] Use std::string in CommandPacket
Diffstat (limited to 'src/network/network_server.cpp')
-rw-r--r-- | src/network/network_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 3a9128427..fe585c03c 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -2182,7 +2182,7 @@ void NetworkServerNewCompany(const Company *c, NetworkClientInfo *ci) /* ci is nullptr when replaying, or for AIs. In neither case there is a client. */ ci->client_playas = c->index; NetworkUpdateClientInfo(ci->client_id); - NetworkSendCommand(0, 0, 0, CMD_RENAME_PRESIDENT, nullptr, ci->client_name.c_str(), c->index); + NetworkSendCommand(0, 0, 0, CMD_RENAME_PRESIDENT, nullptr, ci->client_name, c->index); } /* Announce new company on network. */ |