From 47ec625eb0a46f9d4c223a90ef73aaddd63da242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 22 Nov 2021 19:04:06 +0100 Subject: [PATCH] Fixed AS1/2 - temporary registers handling --- CHANGELOG.md | 1 + .../decompiler/flash/action/swf5/ActionStoreRegister.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a76b0d7a..dd2703baa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file. - AS1/2 - loops and switch break/continue vs definefunction - AS1/2 - callmethod on register instead of callfunction on var - AS1/2 - delete operator correct localreg names +- AS1/2 - temporary registers handling ## [14.5.2] - 2021-11-20 ### Fixed diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStoreRegister.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStoreRegister.java index c943091d8..a1286e5d1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStoreRegister.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStoreRegister.java @@ -119,9 +119,9 @@ public class ActionStoreRegister extends Action implements StoreTypeAction { } if (value instanceof TemporaryRegister) { - if (((TemporaryRegister) value).value instanceof EnumerationAssignmentValueActionItem) { - value = ((TemporaryRegister) value).value; - } + //if (((TemporaryRegister) value).value instanceof EnumerationAssignmentValueActionItem) { + value = ((TemporaryRegister) value).value; + //} } variables.put("__register" + registerNumber, value);