Commit c6940d280cfd3836f86b7ef0376ca8349d08d9a8
1 parent
a6508219
报错
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
src/models/RolePlugin.lua
... | ... | @@ -1260,9 +1260,11 @@ function RolePlugin.bind(Role) |
1260 | 1260 | |
1261 | 1261 | local pvpTSH, pvpTBH, pvpTBVH = {}, {}, {} |
1262 | 1262 | for i = 1, 3 do |
1263 | - pvpTSH[i] = self:getTeamHerosInfo(team[i].heros) | |
1264 | - pvpTBH[i] = self:getTeamBattleInfo(team[i]) | |
1265 | - pvpTBVH[i] = self:getTeamBattleValue(team[i].heros) | |
1263 | + if team[i] then | |
1264 | + pvpTSH[i] = self:getTeamHerosInfo(team[i].heros) | |
1265 | + pvpTBH[i] = self:getTeamBattleInfo(team[i]) | |
1266 | + pvpTBVH[i] = self:getTeamBattleValue(team[i].heros) | |
1267 | + end | |
1266 | 1268 | end |
1267 | 1269 | |
1268 | 1270 | self:setProperties({ | ... | ... |