diff options
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index c973ab8e..7fc4f57b 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -373,9 +373,10 @@ function vm.getClassFields(suri, object, key, ref, pushResult) local fieldKey = guide.getKeyName(field) if fieldKey and not searchedFields[fieldKey] then if not searchedFields[fieldKey] - and guide.isSet(field) - and guide.isLiteral(field.value) then - hasFounded[fieldKey] = true + and guide.isSet(field) then + if guide.isLiteral(field.value) then + hasFounded[fieldKey] = true + end pushResult(field, true) end end |