From 4f8cac556daa519f5babcdc7fdce35925091f5d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 6 Dec 2021 08:23:13 +0100 Subject: [PATCH] Fixed AS1/2 actioncontainers (like try) inside ifs --- CHANGELOG.md | 1 + libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2575d602..5baeb5f08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file. - AS3 - direct editation - resolve properties and local regs before types - AS3 - direct editation - call on index - Incorrect position in Flash Player preview and SWF export +- AS1/2 actioncontainers (like try) inside ifs ## [15.0.0] - 2021-11-29 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java index ee1df2a6a..4c1b29281 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java @@ -2092,8 +2092,7 @@ public class Graph { output.addAll(ex.getOutput()); for (GraphPart p : allParts) { if (p.containsIP(ex.getIp())) { - if (ipStart == p.start) { - //can this happen? TODO: find some example in the wild + if (ex.getIp() == p.start) { currentRet.addAll(output); //to check for stopparts,etc. we need to call printGraph again part = p;