summaryrefslogtreecommitdiff
path: root/src/network/network_internal.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-14 18:12:37 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-15 10:20:50 +0200
commite6703eac6853851f310923760b194ee4c875251b (patch)
tree57efb2579076de6bd1d15fc7b0b56f956122ef64 /src/network/network_internal.h
parent44ca7d93773fb816da6d353c9cde6ab14dae993a (diff)
downloadopenttd-e6703eac6853851f310923760b194ee4c875251b.tar.xz
Codechange: [Network] Let NetworkTextMessage use std::string
Diffstat (limited to 'src/network/network_internal.h')
-rw-r--r--src/network/network_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_internal.h b/src/network/network_internal.h
index 7412d9232..d1db971a3 100644
--- a/src/network/network_internal.h
+++ b/src/network/network_internal.h
@@ -114,7 +114,7 @@ void NetworkFreeLocalCommandQueue();
void NetworkSyncCommandQueue(NetworkClientSocket *cs);
void ShowNetworkError(StringID error_string);
-void NetworkTextMessage(NetworkAction action, TextColour colour, bool self_send, const char *name, const char *str = "", int64 data = 0);
+void NetworkTextMessage(NetworkAction action, TextColour colour, bool self_send, const std::string &name, const std::string &str = "", int64 data = 0);
uint NetworkCalculateLag(const NetworkClientSocket *cs);
StringID GetNetworkErrorMsg(NetworkErrorCode err);
bool NetworkFindName(char *new_name, const char *last);