瀏覽代碼

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 年之前
父節點
當前提交
e2e3cd281c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
 	};
 }