mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts] Fixed bug of reading Unicode from binary data (#2051)
This commit is contained in:
parent
3372ce0ba8
commit
01a36f81c3
@ -1022,7 +1022,7 @@ export class BinaryInput {
|
|||||||
let chars = "";
|
let chars = "";
|
||||||
let charCount = 0;
|
let charCount = 0;
|
||||||
for (let i = 0; i < byteCount;) {
|
for (let i = 0; i < byteCount;) {
|
||||||
let b = this.readByte();
|
let b = this.readUnsignedByte();
|
||||||
switch (b >> 4) {
|
switch (b >> 4) {
|
||||||
case 12:
|
case 12:
|
||||||
case 13:
|
case 13:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user