From cbad2f45924a1509f9e65352f82f50523bd6dba1 Mon Sep 17 00:00:00 2001 From: Nick Terry Date: Sun, 14 Apr 2019 17:06:31 -0700 Subject: [PATCH] Switch spatial registers to a sparse array --- src/game/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/game.js b/src/game/game.js index de8ebbd5..f965d63a 100644 --- a/src/game/game.js +++ b/src/game/game.js @@ -28,7 +28,7 @@ var keys = Object.keys(reg); reg.spatial = {}; keys.forEach((i) => { - reg.spatial[i] = new Array(2500); + reg.spatial[i] = []; }); } }