Przeglądaj źródła

Update RecruitHero.h

Fix warning.
Xilmi 1 rok temu
rodzic
commit
1e2021fb6d
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
 	};
 }