summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-29 19:29:14 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-30 00:01:49 +0200
commit8b9f1147dfec4efe3451dd3e111276a1dab3bb99 (patch)
tree6fc3a64443fdc40fd5ef94b69cad60fc6f075d6b /src/console_cmds.cpp
parentd70fb74ac669bdb64b5f594894629ec91801fd76 (diff)
downloadopenttd-8b9f1147dfec4efe3451dd3e111276a1dab3bb99.tar.xz
Codechange: [Network] Let server changing a client name use std::string
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 39a52f0b5..e86e2a0d9 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -724,7 +724,7 @@ DEF_CONSOLE_CMD(ConClientNickChange)
return true;
}
- if (!NetworkServerChangeClientName(client_id, client_name.c_str())) {
+ if (!NetworkServerChangeClientName(client_id, client_name)) {
IConsoleError("Cannot give a client a duplicate name");
}