aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lua/lua_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 6f782b254..538c8d9f7 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -933,7 +933,7 @@ lua_util_tokenize_text (lua_State *L)
if (lua_type (L, 1) == LUA_TSTRING) {
in = luaL_checklstring (L, 1, &len);
}
- else if (lua_type (L, 1) == LUA_TTABLE) {
+ else if (lua_type (L, 1) == LUA_TUSERDATA) {
t = lua_check_text (L, 1);
if (t) {