diff --git a/src/dorkbox/network/serialization/AeronInput.kt b/src/dorkbox/network/serialization/AeronInput.kt index 088231ae..3d6ffca7 100644 --- a/src/dorkbox/network/serialization/AeronInput.kt +++ b/src/dorkbox/network/serialization/AeronInput.kt @@ -262,8 +262,8 @@ class AeronInput var b = internalBuffer!!.getByte(position++).toInt() var result = b and 0x7F if (b and 0x80 != 0) { - val byteBuf = internalBuffer - b = byteBuf!!.getByte(position++).toInt() + val byteBuf = internalBuffer!! + b = byteBuf.getByte(position++).toInt() result = result or (b and 0x7F shl 7) if (b and 0x80 != 0) { b = byteBuf.getByte(position++).toInt()