fix: Fixes vendor OPL (#672)

This commit is contained in:
Kamron Batman 2021-08-03 00:34:44 -07:00 committed by GitHub
parent 3dc406624e
commit b112be4e1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 94 additions and 115 deletions

View file

@ -84,7 +84,7 @@ namespace Server.Network
var length = 8;
for (int i = 0; i < list.Count; i++)
{
length += 5 + list[i].Description?.Length ?? 0;
length += 6 + list[i].Description?.Length ?? 0;
}
var writer = new SpanWriter(stackalloc byte[length]);
@ -101,8 +101,8 @@ namespace Server.Network
var desc = bis.Description ?? "";
writer.Write((byte)desc.Length);
writer.WriteAscii(desc); // Doesn't look like it is used anymore
writer.Write((byte)(desc.Length + 1));
writer.WriteAsciiNull(desc);
}
ns.Send(writer.Span);