Agents doens't have to be behind a mutable reference in within_prior
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user