diff options
-rw-r--r-- | server/src/matcher/vm.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 |