fix activity

back_recharge
wangyuan 2019-08-14 15:14:29 +08:00
parent 02e214f754
commit 94302befde
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ public class ActivityLogic {
int randomWeight = MathUtils.randomInt(totalWeight) + 1;
for (SDifferDemonsBoxPools sDifferDemonsBoxPool : sDifferDemonsBoxPoolsList) {
randomWeight -= sDifferDemonsBoxPool.getWeight();
if (randomWeight < 0) {
if (randomWeight <= 0) {
return sDifferDemonsBoxPool.getReward();
}
}