luaa: fix idx not used
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
299bc00286
commit
df079b2a54
10
luaa.h
10
luaa.h
|
@ -221,12 +221,12 @@ luaA_getopt_padding(lua_State *L, int idx, padding_t *dpadding)
|
|||
{
|
||||
padding_t padding;
|
||||
|
||||
luaA_checktable(L, 2);
|
||||
luaA_checktable(L, idx);
|
||||
|
||||
padding.right = luaA_getopt_number(L, 2, "right", dpadding->right);
|
||||
padding.left = luaA_getopt_number(L, 2, "left", dpadding->left);
|
||||
padding.top = luaA_getopt_number(L, 2, "top", dpadding->top);
|
||||
padding.bottom = luaA_getopt_number(L, 2, "bottom", dpadding->bottom);
|
||||
padding.right = luaA_getopt_number(L, idx, "right", dpadding->right);
|
||||
padding.left = luaA_getopt_number(L, idx, "left", dpadding->left);
|
||||
padding.top = luaA_getopt_number(L, idx, "top", dpadding->top);
|
||||
padding.bottom = luaA_getopt_number(L, idx, "bottom", dpadding->bottom);
|
||||
|
||||
return padding;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue