From 5c888d7a8661e1397e3cab868df2627fed5893e5 Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 10 Nov 2023 19:03:59 -0600 Subject: remove incompatible toSpliced call --- src/simulation/senses.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1