Commit 18323af79f8b613c2b84209b214018e21eeff876
1 parent
60cd3676
羁绊 bug
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/models/RolePlugin.lua
@@ -605,9 +605,9 @@ function RolePlugin.bind(Role) | @@ -605,9 +605,9 @@ function RolePlugin.bind(Role) | ||
605 | relations[camp] = (relations[camp] or 0) + 1 | 605 | relations[camp] = (relations[camp] or 0) + 1 |
606 | end | 606 | end |
607 | end | 607 | end |
608 | - if not next(relations) then return nil end | ||
609 | - | ||
610 | local curData = csvdb["unit_relationCsv"][0] | 608 | local curData = csvdb["unit_relationCsv"][0] |
609 | + if not next(relations) then return curData end | ||
610 | + | ||
611 | for _, data in ipairs(csvdb["unit_relationCsv"]) do | 611 | for _, data in ipairs(csvdb["unit_relationCsv"]) do |
612 | local had = {} | 612 | local had = {} |
613 | local isDone = true | 613 | local isDone = true |