Skip to content

Commit

Permalink
Fix terminator
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Jan 8, 2024
1 parent bf57a0f commit d9683e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/lib/VPK/VPK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ export class VPK {
i += 4

// Terminator
const terminator = buffer.readUInt8(i)
if (terminator != 255) {
throw new Error(`Unexpected terminator! Expected 255, got ${terminator}`)
const terminator = buffer.readUint16LE(i)
if (terminator != 65535) {
throw new Error(`Unexpected terminator! Expected 65535, got ${terminator}`)
}
i += 2

Expand Down

0 comments on commit d9683e9

Please sign in to comment.