mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Bonus Source ID now uses metaidentifier
This commit is contained in:
@@ -314,8 +314,8 @@ void CGameStateCampaign::giveCampaignBonusToHero(CGHeroInstance * hero)
|
||||
if(val == 0)
|
||||
continue;
|
||||
|
||||
int currentScenario = static_cast<int>(*gameState->scenarioOps->campState->currentScenario());
|
||||
auto bb = std::make_shared<Bonus>( BonusDuration::PERMANENT, BonusType::PRIMARY_SKILL, BonusSource::CAMPAIGN_BONUS, val, currentScenario, TBonusSubtype(g) );
|
||||
auto currentScenario = *gameState->scenarioOps->campState->currentScenario();
|
||||
auto bb = std::make_shared<Bonus>( BonusDuration::PERMANENT, BonusType::PRIMARY_SKILL, BonusSource::CAMPAIGN_BONUS, val, TBonusSourceID(currentScenario), TBonusSubtype(g) );
|
||||
hero->addNewBonus(bb);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user