Agents doens't have to be behind a mutable reference in within_prior

This commit is contained in:
2022-12-15 20:12:55 +01:00
parent 6546cb54b5
commit 8bea1b5399

View File

@@ -240,7 +240,7 @@ impl Batch {
item: &Item,
online: bool,
forward: bool,
agents: &mut HashMap<Index, Agent>,
agents: &HashMap<Index, Agent>,
) -> Player {
let r = &agents[&item.agent].player;