From 67068cfaf43ef95e526401d9f788790516b9f8ed Mon Sep 17 00:00:00 2001 From: Desour Date: Fri, 3 Mar 2023 01:18:38 +0100 Subject: Get rid of wgettext --- src/script/lua_api/l_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/lua_api/l_client.cpp') 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; -- cgit v1.2.3