Fix wrong constant indices when ConstantIndex copy

This commit is contained in:
Jindra Petřík
2018-01-21 12:23:25 +01:00
parent 800b48505f
commit 9e2497f2b8

View File

@@ -1912,7 +1912,8 @@ public class ActionScript2Parser {
orderedConstantPool.add(cval);
}
if (canChangeConstantIndices) {
ci.index = orderedIndex;
//Do NOT change ci.index directly - it may be cloned from other location
ap.values.set(i, new ConstantIndex(orderedIndex));
}
}
}
@@ -1922,6 +1923,7 @@ public class ActionScript2Parser {
if (!canChangeConstantIndices) {
//generate again, as number of bytes per ActionPush can change
srcList = generateActionList(tree, orderedConstantPool);
//FIXME!!!
}
for (GraphSourceItem s : srcList) {