Commit 9407543baa2519dcf55e10cdaa64c29b92ce1c5c

Authored by zhouhaihai
1 parent 2c8d1dfe

限定错误

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
src/models/RolePlugin.lua
... ... @@ -46,8 +46,9 @@ function RolePlugin.bind(Role)
46 46 if limit and self:getItemCount(itemId) == 0 then
47 47 local curCount = 0
48 48 local items = self:getProperty("items"):toNumMap()
49   - for _,_ in pairs(items) do
50   - if globalCsv.store_type[itemData.type] == page then
  49 + for id ,_ in pairs(items) do
  50 + local tempData = csvdb["itemCsv"][id]
  51 + if globalCsv.store_type[tempData.type] == page then
51 52 curCount = curCount + 1
52 53 if curCount >= limit then
53 54 count = 0
... ...