From b14036171d3f7d8d07203bc6a1a22b52797b93c1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 14 Mar 2009 13:38:53 +0100 Subject: [PATCH] key: stop using otable Signed-off-by: Julien Danjou --- key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key.c b/key.c index fb2c77f7..322b8f41 100644 --- a/key.c +++ b/key.c @@ -356,7 +356,7 @@ luaA_key_array_set(lua_State *L, int idx, keybindings_t *keys) int luaA_key_array_get(lua_State *L, keybindings_t *keys) { - luaA_otable_new(L); + lua_createtable(L, keys->by_code.len + keys->by_sym.len, 0); for(int i = 0; i < keys->by_code.len; i++) { luaA_key_userdata_new(L, keys->by_code.tab[i]);