From dca5bc5466d3879beb415f981abf2cc98d134b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sat, 20 Apr 2013 10:11:58 +0200 Subject: [PATCH] Issue #75 If ... return --- trunk/src/com/jpexs/decompiler/flash/graph/Graph.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java index 7457eb438..506adef1f 100644 --- a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java +++ b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java @@ -1075,10 +1075,10 @@ public class Graph { } if ((!onTrue.isEmpty()) && (!onFalse.isEmpty())) { - if (onTrue.get(onTrue.size() - 1) instanceof ExitItem) { - if (onFalse.get(onFalse.size() - 1) instanceof ContinueItem) { - retw.add(onFalse.remove(onFalse.size() - 1)); - } + GraphTargetItem last=onTrue.get(onTrue.size() - 1); + if ((last instanceof ExitItem)||(last instanceof ContinueItem)||(last instanceof BreakItem)) { + retw.addAll(onFalse); + onFalse.clear(); } }