解决死循环

back_recharge
wangyuan 2019-03-02 14:36:54 +08:00
parent be75504fb8
commit 5ab788a789
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class WorkShopController extends MongoBase {
}
int curExp = MathUtils.setBetweenWithMax(this.workShopExp + addExp, 0, maxExp);
while(curExp>=needLevelExp && curExp <= maxExp){
setWorkShopLevel(this.workShopLevel++);
setWorkShopLevel(this.workShopLevel+1);
sWorkShopSetting = SWorkShopSetting.getsWorkShopSettingByLevel(this.workShopLevel + 1);
if(null == sWorkShopSetting){
needLevelExp = Integer.MAX_VALUE;
@ -70,7 +70,7 @@ public class WorkShopController extends MongoBase {
}
int curExp = MathUtils.setBetweenWithMax(this.cookExp + addExp, 0, maxExp);
while(curExp>=needLevelExp && curExp <= maxExp){
setWorkShopLevel(this.cookLevel++);
setWorkShopLevel(this.cookLevel+1);
sWorkShopSetting = SWorkShopSetting.getsWorkShopSettingByLevel(this.cookLevel + 1);
if(null == sWorkShopSetting || sWorkShopSetting.getExp() == 0){
needLevelExp = Integer.MAX_VALUE;