From 01f4f0f4fa439739e7a3abcf14601aab978fd7ec Mon Sep 17 00:00:00 2001 From: Tortar <68152031+Tortar@users.noreply.github.com> Date: Sat, 22 Jun 2024 18:41:59 +0200 Subject: [PATCH] Update sample.jl --- src/simulations/sample.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulations/sample.jl b/src/simulations/sample.jl index 158ce817cb..08e44ea691 100644 --- a/src/simulations/sample.jl +++ b/src/simulations/sample.jl @@ -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...)