From c7e400de596541a66fca64471ddf9ae56470eec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Thu, 4 Mar 2021 22:51:12 +0100 Subject: [PATCH] Fixed: #1298 AS1 direct editation of add,eq,ne and such operations --- CHANGELOG.md | 3 ++- .../flash/action/parser/script/ActionScript2Parser.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9d1e2228..f994c21fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,8 @@ All notable changes to this project will be documented in this file. - #1328 AS1/2/3 direct editation - empty commands (just semicolon) - #1310 AS1/2/3 direct editation - modulo operator precedence - AS3 - escaping star import -- #1298 AS1/2 colon syntax handling +- #1298 AS1 colon syntax handling +- #1298 AS1 direct editation of add,eq,ne and such operations ### Removed - #1631 ActiveX Flash component download in windows installer diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java index 0e1dce4d6..4826e6765 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java @@ -1561,7 +1561,7 @@ public class ActionScript2Parser { } break; case IDENTIFIER: - switch (lookahead.value.toString()) { + switch (op.value.toString()) { case "add": lhs = new StringAddActionItem(null, null, lhs, rhs); break;