mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Changes
This commit is contained in:
parent
062df1b752
commit
ee3f59cda8
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user