mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-10 21:32:31 +00:00
fixes bug when Vector is initialized with elements
This commit is contained in:
committed by
Jindra Petřík
parent
f40360ee38
commit
8d07dbbdf3
@@ -119,8 +119,7 @@ public class InitVectorAVM2Item extends AVM2Item {
|
||||
ABC abc = g.abcIndex.getSelectedAbc();
|
||||
AVM2ConstantPool constants = abc.constants;
|
||||
List<GraphSourceItem> ret = toSourceMerge(localData, generator,
|
||||
ins(AVM2Instructions.FindPropertyStrict, constants.getMultinameId(Multiname.createMultiname(false, constants.getStringId("Vector", true), constants.getNamespaceSetId(new int[]{constants.getNamespaceId(Namespace.KIND_PACKAGE, "__AS3__.vec", 0, true)}, true)), true)),
|
||||
ins(AVM2Instructions.GetProperty, constants.getMultinameId(Multiname.createMultiname(false, constants.getStringId("Vector", true), allNsSet(g.abcIndex)), true)),
|
||||
new TypeItem(VECTOR_FQN),
|
||||
subtype,
|
||||
ins(AVM2Instructions.ApplyType, 1),
|
||||
new IntegerValueAVM2Item(null, null, arguments.size()),
|
||||
|
||||
Reference in New Issue
Block a user