Explorar el Código

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

Terrasse hace 3 años
padre
commit
01a36f81c3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: