From 8f6aee5db8dffde2b8d239b64cf040988178a1e0 Mon Sep 17 00:00:00 2001 From: ShiKhu Date: Tue, 16 Nov 2021 20:52:34 +0100 Subject: [PATCH] fix(frontend-player): PrimitiveReader fix --- frontend/app/player/MessageDistributor/PrimitiveReader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/player/MessageDistributor/PrimitiveReader.ts b/frontend/app/player/MessageDistributor/PrimitiveReader.ts index 7842212f9..b49955074 100644 --- a/frontend/app/player/MessageDistributor/PrimitiveReader.ts +++ b/frontend/app/player/MessageDistributor/PrimitiveReader.ts @@ -3,7 +3,7 @@ export default class PrimitiveReader { constructor(protected readonly buf: Uint8Array) {} hasNext() { - return this.buf.length < this.p + return this.p < this.buf.length } readUint() {