diff --git a/src/nitro/communication/messages/incoming/nux/NewUserExperienceGift.ts b/src/nitro/communication/messages/incoming/nux/NewUserExperienceGift.ts index ebf92403..ecc40454 100644 --- a/src/nitro/communication/messages/incoming/nux/NewUserExperienceGift.ts +++ b/src/nitro/communication/messages/incoming/nux/NewUserExperienceGift.ts @@ -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++; } } diff --git a/src/nitro/communication/messages/incoming/nux/NewUserExperienceGiftOptions.ts b/src/nitro/communication/messages/incoming/nux/NewUserExperienceGiftOptions.ts index bd61899d..ff2fd1b4 100644 --- a/src/nitro/communication/messages/incoming/nux/NewUserExperienceGiftOptions.ts +++ b/src/nitro/communication/messages/incoming/nux/NewUserExperienceGiftOptions.ts @@ -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++; } } diff --git a/src/nitro/communication/messages/parser/nux/NewUserExperienceGiftOfferMessageParser.ts b/src/nitro/communication/messages/parser/nux/NewUserExperienceGiftOfferMessageParser.ts index 99922744..07c48d9e 100644 --- a/src/nitro/communication/messages/parser/nux/NewUserExperienceGiftOfferMessageParser.ts +++ b/src/nitro/communication/messages/parser/nux/NewUserExperienceGiftOfferMessageParser.ts @@ -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;