1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix uninitialized variable in Seer Huts

This commit is contained in:
Ivan Savenko
2023-12-10 19:48:27 +02:00
parent e23cddac8c
commit b62e801530

View File

@@ -30,6 +30,7 @@ Rewardable::Limiter::Limiter()
, heroLevel(-1)
, manaPercentage(0)
, manaPoints(0)
, canLearnSkills(false)
, primary(GameConstants::PRIMARY_SKILLS, 0)
{
}
@@ -45,6 +46,7 @@ bool operator==(const Rewardable::Limiter & l, const Rewardable::Limiter & r)
&& l.manaPoints == r.manaPoints
&& l.manaPercentage == r.manaPercentage
&& l.secondary == r.secondary
&& l.canLearnSkills == r.canLearnSkills
&& l.creatures == r.creatures
&& l.spells == r.spells
&& l.artifacts == r.artifacts