aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
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/script/lua_api
parent35929d27e3a93085c3a27180c1805711dcfe95d5 (diff)
downloadminetest-67068cfaf43ef95e526401d9f788790516b9f8ed.tar.xz
Get rid of wgettext
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp
index a1828a03b..b7112f4f4 100644
--- a/src/script/lua_api/l_client.cpp
+++ b/src/script/lua_api/l_client.cpp
@@ -202,7 +202,7 @@ int ModApiClient::l_disconnect(lua_State *L)
// gettext(text)
int ModApiClient::l_gettext(lua_State *L)
{
- std::string text = strgettext(std::string(luaL_checkstring(L, 1)));
+ std::string text = strgettext(luaL_checkstring(L, 1));
lua_pushstring(L, text.c_str());
return 1;