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(); } }