1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

CGHeroInstance::recreateSecondarySkillsBonuses() restores bonuses for all levels

This commit is contained in:
Henning Koehler 2017-08-28 23:59:01 +12:00
parent 9b3c61616f
commit 3fe9bc34b8

View File

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