Skip to content

Commit

Permalink
Update graph.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Sep 9, 2024
1 parent b27adf9 commit 8bfb7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaces/graph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function remove_agent_from_space!(a::AbstractAgent, model::ABM{<:GraphSpace})
ai = findfirst(id -> id == a.id, ids)
isnothing(ai) && error(lazy"Tried to remove agent with ID $(a.id) from the space, but that agent is not on the space")
deleteat!(ids, ai)
return agent
return a
end

function add_agent_to_space!(agent::AbstractAgent, model::ABM{<:GraphSpace})
Expand Down

0 comments on commit 8bfb7bf

Please sign in to comment.