浏览代码

[ts] Fixed bug of reading Unicode from binary data (#2051)

Terrasse 3 年之前
父节点
当前提交
01a36f81c3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-ts/spine-core/src/SkeletonBinary.ts

+ 1 - 1
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: