From 6510483300e6cf94a916d9688969471124558fa2 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, 30 Jul 2019 11:15:48 +0800 Subject: =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=96=B0=E7=9A=84tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/vm.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server/src') diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index d41d17bb..7bae408c 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -861,7 +861,6 @@ function mt:doLocal(action) self:instantSource(action) local vars = action[1] local exps = action[2] - local tags = action[3] local values if exps then local value = self:getExp(exps) @@ -884,7 +883,7 @@ function mt:doLocal(action) if values then value = values[i] end - self:createLocal(key[1], key, value, tags, emmy, comment) + self:createLocal(key[1], key, value, emmy, comment) end) end @@ -1196,7 +1195,7 @@ function mt:bindLabel(source, label, action) end end -function mt:createLocal(key, source, value, tags, emmy, comment) +function mt:createLocal(key, source, value, emmy, comment) local loc = self:bindLocal(source) if not value then value = self:createValue('nil', source) @@ -1208,7 +1207,7 @@ function mt:createLocal(key, source, value, tags, emmy, comment) return loc end - loc = localMgr.create(key, source, value, tags) + loc = localMgr.create(key, source, value, source.tags) loc:setEmmy(emmy) loc:setComment(comment) self:saveLocal(key, loc) -- cgit v1.2.3