mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Nullkiller: fix build
This commit is contained in:
parent
4c01a8eec4
commit
b5b9619147
@ -101,7 +101,7 @@ std::vector<SlotInfo> ArmyManager::getBestArmy(const IBonusBearer * armyCarrier,
|
|||||||
uint64_t armyValue = 0;
|
uint64_t armyValue = 0;
|
||||||
|
|
||||||
TemporaryArmy newArmyInstance;
|
TemporaryArmy newArmyInstance;
|
||||||
auto bonusModifiers = armyCarrier->getBonuses(Selector::type(Bonus::MORALE));
|
auto bonusModifiers = armyCarrier->getBonuses(Selector::type()(Bonus::MORALE));
|
||||||
|
|
||||||
for(auto bonus : *bonusModifiers)
|
for(auto bonus : *bonusModifiers)
|
||||||
{
|
{
|
||||||
|
@ -68,7 +68,7 @@ float HeroManager::evaluateSecSkill(SecondarySkill skill, const CGHeroInstance *
|
|||||||
float HeroManager::evaluateSpeciality(const CGHeroInstance * hero) const
|
float HeroManager::evaluateSpeciality(const CGHeroInstance * hero) const
|
||||||
{
|
{
|
||||||
auto heroSpecial = Selector::source(Bonus::HERO_SPECIAL, hero->type->ID.getNum());
|
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));
|
auto specialSecondarySkillBonuses = hero->getBonuses(heroSpecial.And(secondarySkillBonus));
|
||||||
float specialityScore = 0.0f;
|
float specialityScore = 0.0f;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user