From 450ebf72208a18d87532339411a4a6892da5d51d Mon Sep 17 00:00:00 2001 From: KRM7 <70973547+KRM7@users.noreply.github.com> Date: Sat, 26 Aug 2023 09:38:19 +0200 Subject: [PATCH] make sure that the end_of_generation callback also gets called in the initial generation --- src/core/ga_base.impl.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/ga_base.impl.hpp b/src/core/ga_base.impl.hpp index f8c0e5fe..5330ab30 100644 --- a/src/core/ga_base.impl.hpp +++ b/src/core/ga_base.impl.hpp @@ -358,6 +358,8 @@ namespace gapp metrics_.initialize(*this); metrics_.update(*this); + + if (end_of_generation_callback_) end_of_generation_callback_(*this); } template