fix: Fixes more packet initializations (#1507)
This commit is contained in:
parent
0bec97639f
commit
2a3e048b86
8 changed files with 26 additions and 23 deletions
|
|
@ -41,7 +41,7 @@ public static class OutgoingMessagePackets
|
|||
return;
|
||||
}
|
||||
|
||||
Span<byte> buffer = stackalloc byte[GetMaxMessageLocalizedLength(args)];
|
||||
Span<byte> buffer = stackalloc byte[GetMaxMessageLocalizedLength(args)].InitializePacket();
|
||||
var length = CreateMessageLocalized(
|
||||
buffer, serial, graphic, type, hue, font, number, name, args
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue