From ae8ce1e4d975d6aefc947a008ed8a82eec1312d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 8 Nov 2021 16:55:44 +0800 Subject: cleanup --- script/vm/getDocs.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/vm/getDocs.lua') diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index 748d17c2..ff6e6ba3 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -257,6 +257,9 @@ function vm.isNoDiscard(value, deep) end local function isCalledInFunction(param) + if not param.ref then + return false + end local func = guide.getParentFunction(param) for _, ref in ipairs(param.ref) do if ref.type == 'getlocal' then -- cgit v1.2.3