committed by
Bertrand Songis
parent
bb2ca31dad
commit
8b4d2b698d
@@ -319,7 +319,7 @@ class LuaWidgetFactory: public WidgetFactory
|
||||
lua_newtable(lsWidgets);
|
||||
int i = 0;
|
||||
for (const ZoneOption * option = options; option->name; option++, i++) {
|
||||
l_pushtableint(option->name, persistentData->options[i].signedValue);
|
||||
l_pushtableint(option->name, persistentData->options[i].value.signedValue);
|
||||
}
|
||||
|
||||
if (lua_pcall(lsWidgets, 2, 1, 0) != 0) {
|
||||
@@ -349,7 +349,7 @@ void LuaWidget::update()
|
||||
lua_newtable(lsWidgets);
|
||||
int i = 0;
|
||||
for (const ZoneOption * option = getOptions(); option->name; option++, i++) {
|
||||
l_pushtableint(option->name, persistentData->options[i].signedValue);
|
||||
l_pushtableint(option->name, persistentData->options[i].value.signedValue);
|
||||
}
|
||||
|
||||
if (lua_pcall(lsWidgets, 2, 0, 0) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user