소스 검색

Nullkiller: fix build

Andrii Danylchenko 4 년 전
부모
커밋
b5b9619147
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      AI/Nullkiller/Analyzers/ArmyManager.cpp
  2. 1 1
      AI/Nullkiller/Analyzers/HeroManager.cpp

+ 1 - 1
AI/Nullkiller/Analyzers/ArmyManager.cpp

@@ -101,7 +101,7 @@ std::vector<SlotInfo> ArmyManager::getBestArmy(const IBonusBearer * armyCarrier,
 	uint64_t armyValue = 0;
 
 	TemporaryArmy newArmyInstance;
-	auto bonusModifiers = armyCarrier->getBonuses(Selector::type(Bonus::MORALE));
+	auto bonusModifiers = armyCarrier->getBonuses(Selector::type()(Bonus::MORALE));
 
 	for(auto bonus : *bonusModifiers)
 	{

+ 1 - 1
AI/Nullkiller/Analyzers/HeroManager.cpp

@@ -68,7 +68,7 @@ float HeroManager::evaluateSecSkill(SecondarySkill skill, const CGHeroInstance *
 float HeroManager::evaluateSpeciality(const CGHeroInstance * hero) const
 {
 	auto heroSpecial = Selector::source(Bonus::HERO_SPECIAL, hero->type->ID.getNum());
-	auto secondarySkillBonus = Selector::type(Bonus::SECONDARY_SKILL_PREMY);
+	auto secondarySkillBonus = Selector::type()(Bonus::SECONDARY_SKILL_PREMY);
 	auto specialSecondarySkillBonuses = hero->getBonuses(heroSpecial.And(secondarySkillBonus));
 	float specialityScore = 0.0f;