This commit is contained in:
Snaiker 2022-12-23 22:15:59 +00:00
parent 062df1b752
commit ee3f59cda8
3 changed files with 11 additions and 11 deletions

View File

@ -16,12 +16,12 @@ export class NewUserExperienceGift
this._productOfferList = [];
const count:number = wrapper.readInt();
let totalOffers:number;
let index = 0;
while(totalOffers < count)
while(index < count)
{
this._productOfferList.push(new ProductOffer(wrapper));
totalOffers++;
index++;
}
}

View File

@ -13,13 +13,13 @@ export class NewUserExperienceGiftOptions
this._stepIndex = wrapper.readInt();
this._options = [];
const _local_2:number = wrapper.readInt();
let _local_3:number;
const count:number = wrapper.readInt();
let index = 0;
while(_local_3 < _local_2)
while(index < count)
{
this._options.push(new NewUserExperienceGift(wrapper));
_local_3++;
index++;
}
}

View File

@ -14,14 +14,14 @@ export class NewUserExperienceGiftOfferMessageParser implements IMessageParser
{
if(!wrapper) return false;
const _local_2 = wrapper.readInt();
const count = wrapper.readInt();
this._giftOptions = [];
let _local_3:number;
let index = 0;
while(_local_3 < _local_2)
while(index < count)
{
this._giftOptions.push(new NewUserExperienceGiftOptions(wrapper));
_local_3++;
index++;
}
return true;