Commit 5ee7dfa610fe94c50a9f527dcba66fc57b587f3c

Authored by zhouhaihai
2 parents 70159459 064ca715

Merge branch 'tr/bugfix' into tr/publish/ts

* tr/bugfix:
  抽卡up_pool判空
Showing 1 changed file with 6 additions and 4 deletions   Show diff stats
src/actions/HeroAction.lua
... ... @@ -884,10 +884,12 @@ function _M.drawHeroRpc(agent, data)
884 884 end
885 885 end
886 886 -- 随机剔除up池中的角色
887   - for k, v in ipairs(up_pool) do
888   - if v == itemData.id then
889   - ok = false
890   - break
  887 + if up_pool then
  888 + for k, v in ipairs(up_pool) do
  889 + if v == itemData.id then
  890 + ok = false
  891 + break
  892 + end
891 893 end
892 894 end
893 895 if not ok then break end
... ...