aboutsummaryrefslogtreecommitdiff
path: root/src/client/gameui.cpp
diff options
context:
space:
mode:
authorDesour <ds.desour@proton.me>2023-03-03 01:18:38 +0100
committersfan5 <sfan5@live.de>2023-04-08 20:17:50 +0200
commit67068cfaf43ef95e526401d9f788790516b9f8ed (patch)
treef4e219f632bff88aa0c798b42b4a27e2e353acef /src/client/gameui.cpp
parent35929d27e3a93085c3a27180c1805711dcfe95d5 (diff)
downloadminetest-67068cfaf43ef95e526401d9f788790516b9f8ed.tar.xz
Get rid of wgettext
Diffstat (limited to 'src/client/gameui.cpp')
-rw-r--r--src/client/gameui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp
index 8d346980c..d448eadd6 100644
--- a/src/client/gameui.cpp
+++ b/src/client/gameui.cpp
@@ -226,9 +226,7 @@ void GameUI::showMinimap(bool show)
void GameUI::showTranslatedStatusText(const char *str)
{
- const wchar_t *wmsg = wgettext(str);
- showStatusText(wmsg);
- delete[] wmsg;
+ showStatusText(wstrgettext(str));
}
void GameUI::setChatText(const EnrichedString &chat_text, u32 recent_chat_count)