diff --git a/buffer/src/main/kotlin/org/openrs2/buffer/ByteBufExtensions.kt b/buffer/src/main/kotlin/org/openrs2/buffer/ByteBufExtensions.kt index 901ac859..85108b04 100644 --- a/buffer/src/main/kotlin/org/openrs2/buffer/ByteBufExtensions.kt +++ b/buffer/src/main/kotlin/org/openrs2/buffer/ByteBufExtensions.kt @@ -109,7 +109,7 @@ public fun ByteBuf.crc32(index: Int, len: Int): Int { } } count == 1 -> crc.update(nioBuffer(index, len)) - else -> crc.update(ByteBufUtil.getBytes(this, index, len)) + else -> crc.update(ByteBufUtil.getBytes(this, index, len, false)) } return crc.value.toInt()