summaryrefslogtreecommitdiff
path: root/src/world/world.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/world/world.js')
-rw-r--r--src/world/world.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world/world.js b/src/world/world.js
index 87d0aed..e1d984d 100644
--- a/src/world/world.js
+++ b/src/world/world.js
@@ -8,7 +8,7 @@ export function world_update(world, postprocess=[]) {
const intermediate_lattice = lattice_apply(world.lattice, lattice_props);
const decisions = world.agents
- .map(a => agent_decide(world.lattice, agent, world.senses, world.actions))
+ .map(a => agent_decide(world, agent, world.senses, world.actions))
.reduce(
([agents, props], [agent, prop]) => [[...agents, agent], [...props, prop]],
[[], []]