From 09d31b022f33e5c5e8875117c0a6ea51e37ebcb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Mar 2019 16:25:54 +0800 Subject: =?UTF-8?q?=E6=B8=85=E7=90=86value=E7=BB=91=E5=AE=9A=E7=9A=84funct?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/value.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/src') diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua index 9665a50f..a51040b4 100644 --- a/server/src/vm/value.lua +++ b/server/src/vm/value.lua @@ -384,6 +384,10 @@ function mt:setFunction(func) end function mt:getFunction() + local func = self._func + if not func:getSource() then + self._func = nil + end return self._func end -- cgit v1.2.3