From 3bd79692ca9b1f834eac2e96807efb96239f6548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sat, 4 May 2013 11:16:39 +0200 Subject: [PATCH] Graph fix - parts with only jump in in gets ignored --- trunk/src/com/jpexs/decompiler/flash/graph/Graph.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java index c9dec2d94..42202bd67 100644 --- a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java +++ b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java @@ -462,6 +462,14 @@ public class Graph { System.err.println("PART " + part); } + while (((part != null) && (part.getHeight() == 1)) && (code.size() > part.start) && (code.get(part.start).isJump())) { //Parts with only jump in it gets ignored + part = part.nextParts.get(0); + } + + if (code.size() <= part.start) { + return ret; + } + if (part == stopPart) { return ret; }