diff --git a/trunk/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java b/trunk/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java index f97c841b9..38a8b312f 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java @@ -76,6 +76,6 @@ public class DeleteActionItem extends ActionItem { @Override public boolean hasReturnValue() { - return false; + return true; } } diff --git a/trunk/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete.java b/trunk/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete.java index 896677264..195f56d19 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete.java @@ -41,7 +41,6 @@ public class ActionDelete extends Action { GraphTargetItem propertyName = stack.pop(); GraphTargetItem object = stack.pop(); - output.add(new DeleteActionItem(this, object, propertyName)); - stack.push(new DirectValueActionItem(this, -1, Boolean.TRUE, new ArrayList())); + stack.push(new DeleteActionItem(this, object, propertyName)); } } diff --git a/trunk/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete2.java b/trunk/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete2.java index 9de9e0667..402027bf0 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete2.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete2.java @@ -40,7 +40,6 @@ public class ActionDelete2 extends Action { public void translate(Stack stack, List output, java.util.HashMap regNames, HashMap variables, HashMap functions, int staticOperation, String path) { GraphTargetItem propertyName = stack.pop(); - output.add(new DeleteActionItem(this, null, propertyName)); - stack.push(new DirectValueActionItem(this, -1, Boolean.TRUE, new ArrayList())); + stack.push(new DeleteActionItem(this, null, propertyName)); } }