From a4373e65cf515f0c68ece9ad1540e1d71e8d2c65 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 14 Mar 2009 13:34:38 +0100 Subject: [PATCH] mouse: stop using otable Signed-off-by: Julien Danjou --- mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mouse.c b/mouse.c index 63657794..53499dc3 100644 --- a/mouse.c +++ b/mouse.c @@ -218,7 +218,7 @@ luaA_button_array_set(lua_State *L, int idx, button_array_t *buttons) int luaA_button_array_get(lua_State *L, button_array_t *buttons) { - luaA_otable_new(L); + lua_createtable(L, buttons->len, 0); for(int i = 0; i < buttons->len; i++) { luaA_button_userdata_new(L, buttons->tab[i]);