NateTheGreatt / bitECS

Flexible, minimal, data-oriented ECS library for Typescript
Mozilla Public License 2.0
944 stars 84 forks source link

Unable to serialize component with long array field #39

Closed sebovzeoueb closed 3 years ago

sebovzeoueb commented 3 years ago

see https://github.com/sebovzeoueb/bitecs-serializer-test for repro.

This happens when serializing an entity with a component that has a uint16 array field of 1024 elements:


    at DataView.getUint16 (<anonymous>)
    at Serialize.js:284
    at index.js:20
    at AnonymousSystem_internal (System.js:18)
    at index.js:20
    at index.js:93
    at index.js:93```
NateTheGreatt commented 3 years ago

fixed in 0.3.20 👍