Fix compilation error
This commit is contained in:
@@ -332,9 +332,7 @@ class LuaWidgetFactory: public WidgetFactory
|
|||||||
Widget * create(FormGroup * parent, const rect_t & rect, Widget::PersistentData * persistentData, bool init=true) const override
|
Widget * create(FormGroup * parent, const rect_t & rect, Widget::PersistentData * persistentData, bool init=true) const override
|
||||||
{
|
{
|
||||||
if (lsWidgets == 0) return 0;
|
if (lsWidgets == 0) return 0;
|
||||||
if (init) {
|
initPersistentData(persistentData, init);
|
||||||
initPersistentData(persistentData);
|
|
||||||
}
|
|
||||||
|
|
||||||
luaSetInstructionsLimit(lsWidgets, WIDGET_SCRIPTS_MAX_INSTRUCTIONS);
|
luaSetInstructionsLimit(lsWidgets, WIDGET_SCRIPTS_MAX_INSTRUCTIONS);
|
||||||
lua_rawgeti(lsWidgets, LUA_REGISTRYINDEX, createFunction);
|
lua_rawgeti(lsWidgets, LUA_REGISTRYINDEX, createFunction);
|
||||||
|
|||||||
Reference in New Issue
Block a user