From 58de7a546ab587f8f3b5170f16f1a7c68af65a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 16 Aug 2025 17:59:30 +0200 Subject: [PATCH] Fix TestIncDec12 --- .../flash/abc/avm2/instructions/other/SetSlotIns.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSlotIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSlotIns.java index 17086e52b..40952fdf1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSlotIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSlotIns.java @@ -106,8 +106,9 @@ public class SetSlotIns extends InstructionDefinition implements SetTypeIns { GraphTargetItem top = stack.peek().getNotCoerced().getThroughDuplicate(); if (top == inside) { //GraphTargetItem.checkDup(stack, output, inside, top); - GraphTargetItem.checkDup(stack, output, stack.pop(), value.getNotCoercedNoDup()); + GraphTargetItem.checkDup(stack, output, stack.pop(), value.getNotCoercedNoDup().value); //stack.pop(); + //TestIncDec12 with result stack.push(new PostIncrementAVM2Item(ins, localData.lineStartInstruction, inside)); } else if ((top instanceof IncrementAVM2Item) && (((IncrementAVM2Item) top).value == inside)) { GraphTargetItem.checkDup(stack, output, stack.pop(), value.getNotCoercedNoDup()); @@ -135,8 +136,9 @@ public class SetSlotIns extends InstructionDefinition implements SetTypeIns { if (!stack.isEmpty()) { GraphTargetItem top = stack.peek().getNotCoerced().getThroughDuplicate(); if (top == inside) { - GraphTargetItem.checkDup(stack, output, stack.pop(), value.getNotCoercedNoDup()); + GraphTargetItem.checkDup(stack, output, stack.pop(), value.getNotCoercedNoDup().value); //stack.pop(); + //TestIncDec12 with result stack.push(new PostDecrementAVM2Item(ins, localData.lineStartInstruction, inside)); } else if ((top instanceof DecrementAVM2Item) && (((DecrementAVM2Item) top).value == inside)) { GraphTargetItem.checkDup(stack, output, stack.pop(), value.getNotCoercedNoDup());