Explorar o código

Update RecruitHero.h

Fix warning.
Xilmi hai 1 ano
pai
achega
1e2021fb6d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AI/Nullkiller/Goals/RecruitHero.h

+ 1 - 1
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;
 	};
 }