diff --git a/src/EdgeDB.Net.Driver/Binary/Protocol/V2.0/Descriptors/IMetadataDescriptor.cs b/src/EdgeDB.Net.Driver/Binary/Protocol/V2.0/Descriptors/IMetadataDescriptor.cs index f197584e..553dcadb 100644 --- a/src/EdgeDB.Net.Driver/Binary/Protocol/V2.0/Descriptors/IMetadataDescriptor.cs +++ b/src/EdgeDB.Net.Driver/Binary/Protocol/V2.0/Descriptors/IMetadataDescriptor.cs @@ -17,8 +17,8 @@ static CodecAncestor[] ConstructAncestors(ushort[] ancestors, RelativeCodecDeleg for (var i = 0; i != ancestors.Length; i++) { codecAncestors[i] = new CodecAncestor( - ref relativeCodec(in i), - ref relativeDescriptor(in i) + ref relativeCodec(ancestors[i]), + ref relativeDescriptor(ancestors[i]) ); }