summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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