mouse: stop using otable

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

View File

@ -218,7 +218,7 @@ luaA_button_array_set(lua_State *L, int idx, button_array_t *buttons)
int int
luaA_button_array_get(lua_State *L, button_array_t *buttons) 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++) for(int i = 0; i < buttons->len; i++)
{ {
luaA_button_userdata_new(L, buttons->tab[i]); luaA_button_userdata_new(L, buttons->tab[i]);