diff --git a/asm/src/main/java/dev/openrs2/asm/StackMetadata.kt b/asm/src/main/java/dev/openrs2/asm/StackMetadata.kt index b7290b58..5a898bd1 100644 --- a/asm/src/main/java/dev/openrs2/asm/StackMetadata.kt +++ b/asm/src/main/java/dev/openrs2/asm/StackMetadata.kt @@ -195,9 +195,9 @@ fun AbstractInsnNode.stackMetadata(): StackMetadata = when (this) { pops++ } if (opcode == Opcodes.PUTFIELD || opcode == Opcodes.PUTSTATIC) { - pushes += fieldSize - } else { pops += fieldSize + } else { + pushes += fieldSize } StackMetadata(pops, pushes) }