fix: Fixes vendor OPL (#672)
This commit is contained in:
parent
3dc406624e
commit
b112be4e1f
6 changed files with 94 additions and 115 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue