Commit 3ecbe55355d44c54e4556ca4e3f32352f147d645
1 parent
bc28fe9e
没有编队
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/adv/AdvBattle.lua
... | ... | @@ -61,7 +61,7 @@ end |
61 | 61 | |
62 | 62 | function Battle:initPlayer() |
63 | 63 | local advTeam = self.adv.owner:getProperty("advTeam") |
64 | - if not next(advTeam.heros) then return end | |
64 | + if not advTeam.heros or not next(advTeam.heros) then return end | |
65 | 65 | local leaderPassive = {} |
66 | 66 | local player = advTeam.player |
67 | 67 | if not player then | ... | ... |