From d868a22f535bb6b0cda35c4859607b533d0c5803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 28 Nov 2021 17:14:07 +0100 Subject: [PATCH] Fixed AS1/2 - GotoFrame2 - scene bias is first --- CHANGELOG.md | 1 + .../decompiler/flash/action/model/GotoFrame2ActionItem.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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(")"); }