diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index d7d1779..6408342 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -1260,9 +1260,11 @@ function RolePlugin.bind(Role) local pvpTSH, pvpTBH, pvpTBVH = {}, {}, {} for i = 1, 3 do - pvpTSH[i] = self:getTeamHerosInfo(team[i].heros) - pvpTBH[i] = self:getTeamBattleInfo(team[i]) - pvpTBVH[i] = self:getTeamBattleValue(team[i].heros) + if team[i] then + pvpTSH[i] = self:getTeamHerosInfo(team[i].heros) + pvpTBH[i] = self:getTeamBattleInfo(team[i]) + pvpTBVH[i] = self:getTeamBattleValue(team[i].heros) + end end self:setProperties({ -- libgit2 0.21.2