From e8e5becffd87486347db7b3b191c1a1eff19c664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 13 Aug 2022 00:30:40 +0800 Subject: fix #1430 --- script/vm/compiler.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/vm') diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 60c7243e..c973ab8e 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -373,7 +373,8 @@ 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) then + and guide.isSet(field) + and guide.isLiteral(field.value) then hasFounded[fieldKey] = true pushResult(field, true) end -- cgit v1.2.3