diff options
| author | TheMas3212 <mas3212@gmail.com> | 2025-04-16 22:07:59 +1000 |
|---|---|---|
| committer | TheMas3212 <mas3212@gmail.com> | 2025-04-16 22:07:59 +1000 |
| commit | 28d65b0f94634df581e873166a17821688209ff4 (patch) | |
| tree | fba17775e5c9f9fc6897b091ef13f7b01b5725e7 /src/packets/general.ts | |
| parent | 67e99ae3737fee54098f9c4d3bc74e8a162ed63a (diff) | |
| download | tasd-js-28d65b0f94634df581e873166a17821688209ff4.tar.gz tasd-js-28d65b0f94634df581e873166a17821688209ff4.zip | |
Fix bug in GameIdentiferPacket
Diffstat (limited to 'src/packets/general.ts')
| -rw-r--r-- | src/packets/general.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packets/general.ts b/src/packets/general.ts index f6b00dc..a83f79f 100644 --- a/src/packets/general.ts +++ b/src/packets/general.ts @@ -453,7 +453,7 @@ export class GameIdentiferPacket implements TASDPacket { return PACKET_TYPES.GAME_IDENTIFIER; } get size() { - return 2 + this.name.length + this.identifier.length; + return 3 + this.name.length + this.identifier.length; } static fromBuffer(buffer: Uint8Array) { const type = readUint8(buffer, 0); |
