Fixed AddCallBackAdapter

This commit is contained in:
Clisprail
2014-02-27 00:56:02 +01:00
parent 81b7789e4e
commit 426dda2013
@@ -42,7 +42,7 @@ public class AddCallbackAdapter implements Injectable, Opcodes {
Label l0 = new Label();
inject.add(new LabelNode(l0));
for (int arg : args) {
inject.add(new VarInsnNode(ASMUtils.getLoadOpcode(types[arg - 1]
inject.add(new VarInsnNode(ASMUtils.getLoadOpcode(types[arg - 1 < 0 ? 0 : arg - 1]
.getDescriptor()), arg));
}
inject.add(new MethodInsnNode(INVOKESTATIC,