aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
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;