diff --git a/CHANGELOG.md b/CHANGELOG.md index 62cf2ac47..4a51eb9f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file. - [#2335] AS3 direct editation - Type coercion of `&&` and `||` operators - [#2334] AS1/2 P-code export - Do not export on(xxx) header - [#2338] AS decompiling threads got stuck after cancelling / timeout +- [#2338] AS2 class detection in some minor cases ## [21.1.0] - 2024-09-23 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2ClassDetector.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2ClassDetector.java index 12290c283..a43fc8559 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2ClassDetector.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2ClassDetector.java @@ -360,6 +360,13 @@ public class ActionScript2ClassDetector { if (parts.size() > partsPos) { item = parts.get(partsPos); + if (item instanceof TemporaryRegisterMark) { + if (partsPos + 1 < parts.size()) { + partsPos++; + item = parts.get(partsPos); + } + } + if (item instanceof SetMemberActionItem) { List memPath = getSetMembersPath((SetMemberActionItem) item); if (memPath != null) {