Skip to content

Commit

Permalink
Update sample.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Jun 22, 2024
1 parent 5dd89eb commit 01f4f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulations/sample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ end
function copy_agent(agent::A, model, id_new; kwargs...) where {A<:AbstractAgent}
if ismultiagentsumtype(A)
args_sum_t = new_args_sum_t(agent, model; kwargs...)
newagent = kindconstructor(agent)(id_new, args_sum_t...)
newagent = variant_constructor(agent)(id_new, args_sum_t...)
else
args_t = new_args_t(agent, model; kwargs...)
newagent = A(id_new, args_t...)
Expand Down

0 comments on commit 01f4f0f

Please sign in to comment.