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