mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
CGHeroInstance::recreateSecondarySkillsBonuses() restores bonuses for all levels
This commit is contained in:
parent
9b3c61616f
commit
3fe9bc34b8
@ -761,7 +761,8 @@ void CGHeroInstance::recreateSecondarySkillsBonuses()
|
||||
removeBonus(bonus);
|
||||
|
||||
for(auto skill_info : secSkills)
|
||||
updateSkill(SecondarySkill(skill_info.first), skill_info.second);
|
||||
for(int level = 1; level <= skill_info.second; level++)
|
||||
updateSkill(SecondarySkill(skill_info.first), level);
|
||||
}
|
||||
|
||||
void CGHeroInstance::updateSkill(SecondarySkill which, int val)
|
||||
|
Loading…
Reference in New Issue
Block a user