1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Nullkiller: fix build

This commit is contained in:
Andrii Danylchenko 2021-05-16 15:01:05 +03:00 committed by Andrii Danylchenko
parent 4c01a8eec4
commit b5b9619147
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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;