diff --git a/asm/src/main/java/dev/openrs2/asm/StackMetadata.kt b/asm/src/main/java/dev/openrs2/asm/StackMetadata.kt index 5a898bd1f6..6ba8d43130 100644 --- a/asm/src/main/java/dev/openrs2/asm/StackMetadata.kt +++ b/asm/src/main/java/dev/openrs2/asm/StackMetadata.kt @@ -203,8 +203,8 @@ fun AbstractInsnNode.stackMetadata(): StackMetadata = when (this) { } is MethodInsnNode -> { val argumentsAndReturnSizes = Type.getArgumentsAndReturnSizes(desc) - val pushes = argumentsAndReturnSizes shr 2 - var pops = argumentsAndReturnSizes and 0x3 + val pushes = argumentsAndReturnSizes and 0x3 + var pops = argumentsAndReturnSizes shr 2 if (opcode != Opcodes.INVOKESTATIC) { pops++ }