key: stop using otable

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-03-14 13:38:53 +01:00
parent a4373e65cf
commit b14036171d
1 changed files with 1 additions and 1 deletions

2
key.c
View File

@ -356,7 +356,7 @@ luaA_key_array_set(lua_State *L, int idx, keybindings_t *keys)
int int
luaA_key_array_get(lua_State *L, keybindings_t *keys) 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++) for(int i = 0; i < keys->by_code.len; i++)
{ {
luaA_key_userdata_new(L, keys->by_code.tab[i]); luaA_key_userdata_new(L, keys->by_code.tab[i]);