diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ae565425..4dcdc39dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file. - [#1827] Video replacing VP6 reading - [#1926] Constructors namespace taken from class - should be always public - [#1772] AS1/2 decompilation - StackOverflow during getVariables function +- [#1890] AS3 - Removing first assignment in for in loop ### Changed - [#1913] SVG export/import of shapes - shape exact position (bounds) is retained diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForInAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForInAVM2Item.java index 3571afe05..6f5d6d59d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForInAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForInAVM2Item.java @@ -73,7 +73,9 @@ public class ForInAVM2Item extends LoopItem implements Block { public ForInAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Loop loop, InAVM2Item expression, List commands) { super(instruction, lineStartIns, loop); - if (!commands.isEmpty()) { + + //Commented out - see the comment in ForEachInAVM2Item + /*if (!commands.isEmpty()) { GraphTargetItem firstAssign = commands.get(0); if (firstAssign instanceof SetTypeAVM2Item) { if (expression.object instanceof LocalRegAVM2Item) { @@ -87,7 +89,7 @@ public class ForInAVM2Item extends LoopItem implements Block { } //locAssign. } - } + }*/ this.expression = expression; this.commands = commands; }