summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-24 09:44:20 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-29 10:07:30 +0200
commit208952f2ba80faeb2fd16f18193a96bf066a7dae (patch)
treebdb5b3a9ee07fe4628fdf9d5896ed84b5ab1c7f2 /src/network
parentce1c60699afc7c7fa857fb118995a255e87c5b91 (diff)
downloadopenttd-208952f2ba80faeb2fd16f18193a96bf066a7dae.tar.xz
Codechange: split Write_ValidateSetting to get separate functions for making strings valid and writing strings
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 3c61cf77a..6df77cd08 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -2208,7 +2208,7 @@ public:
std::string client_name(str);
if (!NetworkValidateClientName(client_name)) break;
- SetSettingValue(GetSettingFromName("network.client_name")->AsStringSetting(), client_name.c_str());
+ SetSettingValue(GetSettingFromName("network.client_name")->AsStringSetting(), client_name);
this->InvalidateData();
break;
}