From faf56c7e9d08776207c4592e6aee87a79241fdcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 27 Mar 2019 15:30:19 +0800 Subject: =?UTF-8?q?=E6=94=B9=E6=88=90=E5=85=A8=E5=B1=80=E8=A1=A8=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/label.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src/vm/label.lua') diff --git a/server/src/vm/label.lua b/server/src/vm/label.lua index 9ed62ca3..c0e0dfb8 100644 --- a/server/src/vm/label.lua +++ b/server/src/vm/label.lua @@ -1,4 +1,4 @@ -local sourceMgr = require 'vm.source' +local listMgr = require 'vm.list' local Sort = 0 @@ -34,7 +34,7 @@ end function mt:eachInfo(callback) local list = {} for srcId, info in pairs(self._info) do - local src = sourceMgr.list[srcId] + local src = listMgr.get(srcId) if src then list[#list+1] = info else @@ -46,7 +46,7 @@ function mt:eachInfo(callback) end) for i = 1, #list do local info = list[i] - local res = callback(info, sourceMgr.list[info.source]) + local res = callback(info, listMgr.get(info.source)) if res ~= nil then return res end @@ -55,7 +55,7 @@ function mt:eachInfo(callback) end function mt:getSource() - return sourceMgr.list[self.source] + return listMgr.get(self.source) end return function (name, source) -- cgit v1.2.3