From 63f87da9c1c930f7acda9b07a1540ed58667e324 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sat, 3 Oct 2015 14:41:43 +0200 Subject: [PATCH] actionif + action jump target calcualtion simplified 2 --- .../com/jpexs/decompiler/flash/action/ActionListReader.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java index 2b3e06d10..41aea0088 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java @@ -362,11 +362,9 @@ public class ActionListReader { for (Action a : actions) { long target = -1; if (a instanceof ActionIf) { - ActionIf aIf = (ActionIf) a; - target = aIf.getAddress() + a.getTotalActionLength() + aIf.getJumpOffset(); + target = ((ActionIf) a).getTargetAddress(); } else if (a instanceof ActionJump) { - ActionJump aJump = (ActionJump) a; - target = aJump.getAddress() + a.getTotalActionLength() + aJump.getJumpOffset(); + target = ((ActionJump) a).getTargetAddress(); } else if (a instanceof ActionStore) { ActionStore aStore = (ActionStore) a; int storeSize = aStore.getStoreSize();