diff options
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 |