From b2d3e87c35ad11824537bc899718854d058330a0 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 15 Sep 2022 10:22:02 -0500 Subject: [PATCH] fix: reset window on data realloc --- packages/ecs/src/component/flat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ecs/src/component/flat.js b/packages/ecs/src/component/flat.js index e4da73d..7292959 100644 --- a/packages/ecs/src/component/flat.js +++ b/packages/ecs/src/component/flat.js @@ -28,6 +28,8 @@ export default class FlatComponent extends BaseComponent { const data = new ArrayBuffer(size); (new Uint8Array(data)).set(this.data); this.data = data; + this.Window = undefined; + this.window = undefined; } for (let i = 0; i < count; ++i) { results.push(this.caret++);