diff options
author | sanine <sanine.not@pm.me> | 2023-11-10 19:03:59 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-10 19:03:59 -0600 |
commit | 5c888d7a8661e1397e3cab868df2627fed5893e5 (patch) | |
tree | 72bb13996b026fa5909712d9c989a14ac24613bb /src/simulation/senses.js | |
parent | c9e241e3ffed2131c240607b8dfb36510217dc88 (diff) |
remove incompatible toSpliced call
Diffstat (limited to 'src/simulation/senses.js')
-rw-r--r-- | src/simulation/senses.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simulation/senses.js b/src/simulation/senses.js index d2eb581..d3e7c1e 100644 --- a/src/simulation/senses.js +++ b/src/simulation/senses.js @@ -161,7 +161,8 @@ const see = { if (idx < 0 || idx > VIS_WIDTH*VIS_HEIGHT) { return acc; } else { - return acc.toSpliced(idx, 1, see_agent(agent, a)); + acc.splice(idx, 1, see_agent(agent, a)); + return acc; } }, vision |