diff --git a/CHANGELOG.md b/CHANGELOG.md index 370814dba..e381e931f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ All notable changes to this project will be documented in this file. - AS1/2 - properties postincrement - AS1/2 - direct editation - allow call on numbers, boolean, etc. - AS1/2 - direct editation - try..finally without catch clause +- AS1/2 - GotoFrame2 - scene bias is first ## [14.6.0] - 2021-11-22 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrame2ActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrame2ActionItem.java index 60008b54f..ba063fc2d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrame2ActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrame2ActionItem.java @@ -67,8 +67,11 @@ public class GotoFrame2ActionItem extends ActionItem { writer.append(prefix); writer.spaceBeforeCallParenthesies(1); writer.append("("); + if (sceneBiasFlag) { + writer.append(sceneBias + ", "); + } frame.toString(writer, localData); - writer.append((sceneBiasFlag ? "," + sceneBias : "")); + return writer.append(")"); }