From 6254519cc988d0f5a1f507979de8f2ab09a0537f 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, 19 Sep 2020 10:23:51 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/hover/table.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'script-beta/core/hover/table.lua') diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua index 0e0fe70f..0d243aff 100644 --- a/script-beta/core/hover/table.lua +++ b/script-beta/core/hover/table.lua @@ -38,7 +38,9 @@ local function getField(src) if src.parent.type == 'tableindex' or src.parent.type == 'setindex' or src.parent.type == 'getindex' then - src = src.parent + if src.parent.index == src then + src = src.parent + end end local tp = vm.getInferType(src) local class = vm.getClass(src) -- cgit v1.2.3