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,
|
item: &Item,
|
||||||
online: bool,
|
online: bool,
|
||||||
forward: bool,
|
forward: bool,
|
||||||
agents: &mut HashMap<Index, Agent>,
|
agents: &HashMap<Index, Agent>,
|
||||||
) -> Player {
|
) -> Player {
|
||||||
let r = &agents[&item.agent].player;
|
let r = &agents[&item.agent].player;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user