aboutsummaryrefslogtreecommitdiff
path: root/src/network/clientpackethandler.cpp
diff options
context:
space:
mode:
authorHerman Semenov <GermanAizek@yandex.ru>2022-09-06 13:21:09 +0300
committerGitHub <noreply@github.com>2022-09-06 11:21:09 +0100
commit038da00e799b4bf3af824075a260083c56392964 (patch)
tree8c0e3218455073684c2521cec41b7df06fff8598 /src/network/clientpackethandler.cpp
parentff6dcfea82974df6db5a557e31aaddb6bdb7a71f (diff)
downloadminetest-038da00e799b4bf3af824075a260083c56392964.tar.xz
Code optimizations / refactor (#12704)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/network/clientpackethandler.cpp')
-rw-r--r--src/network/clientpackethandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index 25c1d2690..2933bb9f0 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -152,7 +152,7 @@ void Client::handleCommand_AuthAccept(NetworkPacket* pkt)
language code (e.g. "de" for German). */
std::string lang = gettext("LANG_CODE");
if (lang == "LANG_CODE")
- lang = "";
+ lang.clear();
NetworkPacket resp_pkt(TOSERVER_INIT2, sizeof(u16) + lang.size());
resp_pkt << lang;