summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-11-10 19:03:59 -0600
committersanine <sanine.not@pm.me>2023-11-10 19:03:59 -0600
commit5c888d7a8661e1397e3cab868df2627fed5893e5 (patch)
tree72bb13996b026fa5909712d9c989a14ac24613bb /src
parentc9e241e3ffed2131c240607b8dfb36510217dc88 (diff)
remove incompatible toSpliced call
Diffstat (limited to 'src')
-rw-r--r--src/simulation/senses.js3
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