diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-15 08:31:45 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-16 10:07:51 +0200 |
commit | 4d246cda73d73cbc3f1557dd4ecb1c1d0d451fb0 (patch) | |
tree | 61bebbd1870c6ad199d3c0f2273e0ec7e807c907 /src/script | |
parent | 83679c0e57cb3e13de6d6c5ec33735bc4070da40 (diff) | |
download | openttd-4d246cda73d73cbc3f1557dd4ecb1c1d0d451fb0.tar.xz |
Codechange: [Network] Let NetworkClientInfo use std::string
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_client.cpp b/src/script/api/script_client.cpp index da646516b..ede1b925f 100644 --- a/src/script/api/script_client.cpp +++ b/src/script/api/script_client.cpp @@ -36,7 +36,7 @@ static NetworkClientInfo *FindClientInfo(ScriptClient::ClientID client) { NetworkClientInfo *ci = FindClientInfo(client); if (ci == nullptr) return nullptr; - return stredup(ci->client_name); + return stredup(ci->client_name.c_str()); } /* static */ ScriptCompany::CompanyID ScriptClient::GetCompany(ScriptClient::ClientID client) |