From 90fa999b000207f4e52363da05917ae5fc6da574 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, 30 Nov 2019 01:22:36 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/vm/eachRef.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script-beta/vm/eachRef.lua b/script-beta/vm/eachRef.lua index 0d772209..d6ca819b 100644 --- a/script-beta/vm/eachRef.lua +++ b/script-beta/vm/eachRef.lua @@ -248,7 +248,7 @@ end --- 自己作为函数的返回值 local function asReturn(source, callback) local parent = source.parent - if parent.type ~= 'return' then + if not parent or parent.type ~= 'return' then return end local func = guide.getParentFunction(source) -- cgit v1.2.3