Fix bad stack calc in injector, fixes SpongePowered/SpongeVanilla#163

This commit is contained in:
Mumfrey committed 2015-05-12 17:14:25 +01:00
1 parent 01bf2d445b
commit 584f14877e
1 file changed
+1 -1
@@ -470,7 +470,7 @@ public class CallbackInjector extends Injector {
ASMHelper.loadArgs(callback.target.arguments, callback, this.isStatic ? 0 : 1);
// Push the callback info onto the stack
callback.add(new VarInsnNode(Opcodes.ALOAD, callback.marshallVar));
callback.add(new VarInsnNode(Opcodes.ALOAD, callback.marshallVar), false, true);
// (Maybe) push the locals onto the stack
if (callback.canCaptureLocals) {