From 30406bb8db6c33b7da92734da41a7eec884a73c6 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, 11 Dec 2018 18:13:34 +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 --- server/src/matcher/vm.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/src') diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua index c76bf420..e09cfe54 100644 --- a/server/src/matcher/vm.lua +++ b/server/src/matcher/vm.lua @@ -15,6 +15,8 @@ function mt:createLocal(key, source, value) self.scope.locals[key] = loc self.results.locals[#self.results.locals+1] = loc + self:addInfo(loc, 'local', source) + local value = value or self:createValue('nil', source) self:setValue(loc, value, source) return loc -- cgit v1.2.3