diff options
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index a9cd50cd..995fe395 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -295,8 +295,7 @@ function vm.getClassFields(suri, object, key, ref, pushResult) hasFounded[fieldKey] = true end end - end - if not hasFounded[fieldKey] then + elseif key and not hasFounded[key] then local keyType = type(key) if keyType == 'table' then -- ---@field [integer] boolean -> class[integer] |