diff options
Diffstat (limited to 'script/vm/type.lua')
-rw-r--r-- | script/vm/type.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua index f2870d28..53b1ec3b 100644 --- a/script/vm/type.lua +++ b/script/vm/type.lua @@ -52,7 +52,7 @@ local function checkEnum(parentName, child, uri) end for _, set in ipairs(parentClass:getSets(uri)) do if set.type == 'doc.enum' then - if not set._enums then + if not vm.getEnums(set) then return false end if child.type ~= 'string' @@ -62,7 +62,7 @@ local function checkEnum(parentName, child, uri) and child.type ~= 'doc.type.integer' then return false end - return util.arrayHas(set._enums, child[1]) + return util.arrayHas(vm.getEnums(set), child[1]) end end |