From 01a36f81c328ee7100d886c4d9996abb4a92e657 Mon Sep 17 00:00:00 2001 From: Terrasse <37892712+Jerry-Terrasse@users.noreply.github.com> Date: Thu, 7 Apr 2022 11:50:42 +0800 Subject: [PATCH] [ts] Fixed bug of reading Unicode from binary data (#2051) --- spine-ts/spine-core/src/SkeletonBinary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-ts/spine-core/src/SkeletonBinary.ts b/spine-ts/spine-core/src/SkeletonBinary.ts index f61e80788..4b1b1daba 100644 --- a/spine-ts/spine-core/src/SkeletonBinary.ts +++ b/spine-ts/spine-core/src/SkeletonBinary.ts @@ -1022,7 +1022,7 @@ export class BinaryInput { let chars = ""; let charCount = 0; for (let i = 0; i < byteCount;) { - let b = this.readByte(); + let b = this.readUnsignedByte(); switch (b >> 4) { case 12: case 13: