fix
parent
72760b449f
commit
5495dab69a
|
|
@ -249,7 +249,7 @@ public class HeroLogic {
|
|||
int weight =0;
|
||||
for(SLotteryRewardConfig sLotteryRewardConfig :sLotteryRewardConfigListByPoolId){
|
||||
weight += sLotteryRewardConfig.getWeight();
|
||||
if(weight>randCount){
|
||||
if(weight>=randCount){
|
||||
return sLotteryRewardConfig.getReward();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue