mirror of https://github.com/odrling/Aegisub
Fix dialog control table loading when there are buttons
This commit is contained in:
parent
bfa5a8df1e
commit
6308104031
|
@ -424,6 +424,7 @@ namespace Automation4 {
|
|||
luaL_error(L, "Cannot create config dialog from something non-table");
|
||||
|
||||
// Ok, so there is a table with controls
|
||||
lua_pushvalue(L, 1);
|
||||
lua_for_each(L, [&] {
|
||||
if (!lua_istable(L, -1))
|
||||
luaL_error(L, "bad control table entry");
|
||||
|
|
Loading…
Reference in New Issue