From a2e6b2e0b14731af8fbf9ad80922c1be7ee967a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 10 Aug 2024 22:35:08 +0200 Subject: [PATCH] Fixed delocal_p, inclocal_p. --- .../avm2/instructions/other/decimalsupport/DecLocalPIns.java | 2 +- .../avm2/instructions/other/decimalsupport/IncLocalPIns.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecLocalPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecLocalPIns.java index e797127b2..cb3c18ca1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecLocalPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecLocalPIns.java @@ -71,7 +71,7 @@ public class DecLocalPIns extends InstructionDefinition { //same for declocal and declocalp (decimal) @Override public void translate(AVM2LocalData localData, TranslateStack stack, AVM2Instruction ins, List output, String path) { - int regId = ins.operands[0]; + int regId = ins.operands[1]; boolean isPostDec = false; if (!stack.isEmpty()) { GraphTargetItem stackTop = stack.peek(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncLocalPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncLocalPIns.java index 6d4c98ff7..494fcb020 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncLocalPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncLocalPIns.java @@ -71,7 +71,7 @@ public class IncLocalPIns extends InstructionDefinition { //same for inclocal and inclocalp (decimal) @Override public void translate(AVM2LocalData localData, TranslateStack stack, AVM2Instruction ins, List output, String path) { - int regId = ins.operands[0]; + int regId = ins.operands[1]; boolean isPostInc = false; if (!stack.isEmpty()) { GraphTargetItem stackTop = stack.peek();