diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AVM2SourceGenerator.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AVM2SourceGenerator.java index 7adba9732..33ce23b87 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AVM2SourceGenerator.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AVM2SourceGenerator.java @@ -873,18 +873,18 @@ public class AVM2SourceGenerator implements SourceGenerator { MethodBody initBody = null; if (!isInterface) { initBody = abcIndex.getSelectedAbc().findBody(init); - + int len = 0; for (AVM2Instruction ins : initcode) { len += ins.getBytesLength(); } - + initBody.getCode().code.addAll(iinit == null ? 0 : 2, initcode); //after getlocal0,pushscope - for (ABCException ex:initBody.exceptions) { + for (ABCException ex : initBody.exceptions) { ex.start += len; ex.end += len; - ex.target += len; - } + ex.target += len; + } } cinitBody.markOffsets(); cinitBody.autoFillStats(abcIndex.getSelectedAbc(), initScope + (implementsStr.isEmpty() ? 0 : 1), true);