From 5a137f0a20131a6f64c0fecc340ff7ab4ef681d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sat, 20 Jul 2013 09:25:05 +0200 Subject: [PATCH] AS1/2 postincrement fix --- .../action/model/GetVariableActionItem.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/trunk/src/com/jpexs/decompiler/flash/action/model/GetVariableActionItem.java b/trunk/src/com/jpexs/decompiler/flash/action/model/GetVariableActionItem.java index d38df4f26..e2d3c7f9c 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/model/GetVariableActionItem.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/model/GetVariableActionItem.java @@ -102,6 +102,23 @@ public class GetVariableActionItem extends ActionItem { return true; } + @Override + public boolean valueEquals(GraphTargetItem obj) { + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + final GetVariableActionItem other = (GetVariableActionItem) obj; + if (this.name != other.name && (this.name == null || !this.name.valueEquals(other.name))) { + return false; + } + return true; + } + + + @Override public List toSource(List localData, SourceGenerator generator) { return toSourceMerge(localData, generator, name, new ActionGetVariable());