Răsfoiți Sursa

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.
Xilmi 1 an în urmă
părinte
comite
e2e3cd281c
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      AI/Nullkiller/Goals/RecruitHero.h

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