浏览代码

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

Rewardable: always initialize numbers
Ivan Savenko 2 年之前
父节点
当前提交
f24ca6fbcf
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lib/mapObjects/CRewardableObject.h

+ 4 - 1
lib/mapObjects/CRewardableObject.h

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