我的助战报错修改提交

dev_chengFeng
jiaoyangna 2021-08-31 17:12:30 +08:00
parent d660fe362e
commit 82b992c4ca
1 changed files with 5 additions and 0 deletions

View File

@ -97,7 +97,12 @@ function this:SortHeros(data)
data[i].fourElementSortId = 0
end
end
else
for i = 1 ,#data do
data[i].fourElementSortId = 0
end
end
table.sort(data,function(a,b)
if a.fourElementSortId == b.fourElementSortId then
if a.warPower == b.warPower then