better multibane namespace resolving

icon 256
This commit is contained in:
Jindra Pet��k
2012-12-25 08:40:03 +01:00
parent fb207c72c2
commit cfadfc93e7
4 changed files with 16 additions and 17 deletions
@@ -82,13 +82,13 @@ public class InstructionDefinition {
protected FullMultinameTreeItem resolveMultiname(Stack<TreeItem> stack, ConstantPool constants, int multinameIndex, AVM2Instruction ins) {
TreeItem ns = null;
TreeItem name = null;
if (constants.constant_multiname[multinameIndex].needsNs()) {
ns = (TreeItem) stack.pop();
}
TreeItem name = null;
if (constants.constant_multiname[multinameIndex].needsName()) {
name = (TreeItem) stack.pop();
}
if (constants.constant_multiname[multinameIndex].needsNs()) {
ns = (TreeItem) stack.pop();
}
return new FullMultinameTreeItem(ins, multinameIndex, name, ns);
}