Fix dialog control table loading when there are buttons

This commit is contained in:
Thomas Goyne 2013-05-26 08:33:13 -07:00
parent bfa5a8df1e
commit 6308104031
1 changed files with 1 additions and 0 deletions

View File

@ -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");