From e2e3cd281c5f97601eceef13b5cfbbf5bbe93bba Mon Sep 17 00:00:00 2001 From: Xilmi Date: Wed, 24 Jul 2024 21:23:20 +0200 Subject: [PATCH] Update RecruitHero.h Multiple orders for the same hero by different towns are now handled properly instead of trying to buy the same hero several times. --- AI/Nullkiller/Goals/RecruitHero.h | 1 + 1 file changed, 1 insertion(+) diff --git a/AI/Nullkiller/Goals/RecruitHero.h b/AI/Nullkiller/Goals/RecruitHero.h index 101588f19..2fb932ed5 100644 --- a/AI/Nullkiller/Goals/RecruitHero.h +++ b/AI/Nullkiller/Goals/RecruitHero.h @@ -44,6 +44,7 @@ namespace Goals } std::string toString() const override; + const CGHeroInstance* getHero() { return heroToBuy; } void accept(AIGateway * ai) override; }; }