From 1e2021fb6d67b9e6eff45563288321eee49bcc19 Mon Sep 17 00:00:00 2001 From: Xilmi Date: Wed, 24 Jul 2024 21:41:49 +0200 Subject: [PATCH] Update RecruitHero.h Fix warning. --- AI/Nullkiller/Goals/RecruitHero.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/Nullkiller/Goals/RecruitHero.h b/AI/Nullkiller/Goals/RecruitHero.h index 2fb932ed5..c49644948 100644 --- a/AI/Nullkiller/Goals/RecruitHero.h +++ b/AI/Nullkiller/Goals/RecruitHero.h @@ -44,7 +44,7 @@ namespace Goals } std::string toString() const override; - const CGHeroInstance* getHero() { return heroToBuy; } + const CGHeroInstance* getHero() const override { return heroToBuy; } void accept(AIGateway * ai) override; }; }