1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Merge pull request #1699 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

View File

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