Fix StackMetadata for FieldInsnNodes

master
Graham 5 years ago
parent e0d6390f87
commit 64a9ae33cb
  1. 4
      asm/src/main/java/dev/openrs2/asm/StackMetadata.kt

@ -195,9 +195,9 @@ fun AbstractInsnNode.stackMetadata(): StackMetadata = when (this) {
pops++ pops++
} }
if (opcode == Opcodes.PUTFIELD || opcode == Opcodes.PUTSTATIC) { if (opcode == Opcodes.PUTFIELD || opcode == Opcodes.PUTSTATIC) {
pushes += fieldSize
} else {
pops += fieldSize pops += fieldSize
} else {
pushes += fieldSize
} }
StackMetadata(pops, pushes) StackMetadata(pops, pushes)
} }

Loading…
Cancel
Save