summaryrefslogtreecommitdiff
path: root/src/packets
diff options
context:
space:
mode:
Diffstat (limited to 'src/packets')
-rw-r--r--src/packets/general.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packets/general.ts b/src/packets/general.ts
index e9803d0..6e2a8ed 100644
--- a/src/packets/general.ts
+++ b/src/packets/general.ts
@@ -373,7 +373,7 @@ export class VerifiedPacket implements TASDPacket {
return new this(readUint8(buffer, 0) !== 0);
}
toBuffer(g_keylen: number): Uint8Array {
- const payload = new Uint8Array(2);
+ const payload = new Uint8Array(1);
writeUint8(this.verified ? 1 : 0, payload, 0);
return buildBuffer(g_keylen, this.key, payload);
}