1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-11 11:31:52 +02:00

Merge pull request from rilian-la-te/fix-ignissa

Rewardable: always initialize numbers
This commit is contained in:
Ivan Savenko 2023-03-17 22:15:28 +02:00 committed by GitHub
commit f24ca6fbcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -73,8 +73,11 @@ public:
CRewardLimiter(): CRewardLimiter():
dayOfWeek(0), dayOfWeek(0),
daysPassed(0), daysPassed(0),
heroExperience(0),
heroLevel(0), heroLevel(0),
primary(4, 0) manaPercentage(0),
manaPoints(0),
primary(GameConstants::PRIMARY_SKILLS, 0)
{} {}
bool heroAllowed(const CGHeroInstance * hero) const; bool heroAllowed(const CGHeroInstance * hero) const;