diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-14 18:22:39 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-15 10:20:50 +0200 |
commit | fab120ee831ff1cdf3d5560b6b87288b07c52084 (patch) | |
tree | 5aa3a385b6eb4c4a334afb26c490892992a750ba /src/network/network_chat_gui.cpp | |
parent | ae85af98eb02831594e4a204348c682b192e83ac (diff) | |
download | openttd-fab120ee831ff1cdf3d5560b6b87288b07c52084.tar.xz |
Codechange: [Network] Let chat communication use std::string
Diffstat (limited to 'src/network/network_chat_gui.cpp')
-rw-r--r-- | src/network/network_chat_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 82d9a819b..f8eaf3bda 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -259,9 +259,9 @@ void NetworkDrawChatMessage() * @param type The type of destination. * @param dest The actual destination index. */ -static void SendChat(const char *buf, DestType type, int dest) +static void SendChat(const std::string &buf, DestType type, int dest) { - if (StrEmpty(buf)) return; + if (buf.empty()) return; if (!_network_server) { MyClient::SendChat((NetworkAction)(NETWORK_ACTION_CHAT + type), type, dest, buf, 0); } else { |