diff options
| author | Desour <ds.desour@proton.me> | 2023-03-03 01:18:38 +0100 |
|---|---|---|
| committer | sfan5 <sfan5@live.de> | 2023-04-08 20:17:50 +0200 |
| commit | 67068cfaf43ef95e526401d9f788790516b9f8ed (patch) | |
| tree | f4e219f632bff88aa0c798b42b4a27e2e353acef /src/client/gameui.cpp | |
| parent | 35929d27e3a93085c3a27180c1805711dcfe95d5 (diff) | |
| download | minetest-67068cfaf43ef95e526401d9f788790516b9f8ed.tar.xz | |
Get rid of wgettext
Diffstat (limited to 'src/client/gameui.cpp')
| -rw-r--r-- | src/client/gameui.cpp | 4 |
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) |
