summaryrefslogtreecommitdiff
path: root/src/cat/LuaTextbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cat/LuaTextbox.cpp')
-rw-r--r--src/cat/LuaTextbox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cat/LuaTextbox.cpp b/src/cat/LuaTextbox.cpp
index fa5753c..46285c8 100644
--- a/src/cat/LuaTextbox.cpp
+++ b/src/cat/LuaTextbox.cpp
@@ -100,8 +100,7 @@ int LuaTextbox::text(lua_State * l)
int args = lua_gettop(l);
if(args)
{
- luaL_checktype(l, 1, LUA_TSTRING);
- textbox->SetText(lua_tostring(l, 1));
+ textbox->SetText(std::string(lua_tostring(l, 1)));
return 0;
}
else