1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fix hero level limiter

This commit is contained in:
nordsoft
2023-10-12 12:52:01 +02:00
parent 3199b7261f
commit 74a90cde5d
2 changed files with 3 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ void Rewardable::Limiter::loadComponents(std::vector<Component> & comps,
if (heroExperience)
comps.emplace_back(Component::EComponentType::EXPERIENCE, 0, static_cast<si32>(h->calculateXp(heroExperience)), 0);
if (heroLevel)
if (heroLevel > 0)
comps.emplace_back(Component::EComponentType::EXPERIENCE, 1, heroLevel, 0);
if (manaPoints || manaPercentage > 0)