Przeglądaj źródła

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

Rewardable: always initialize numbers
Ivan Savenko 2 lat temu
rodzic
commit
f24ca6fbcf
1 zmienionych plików z 4 dodań i 1 usunięć
  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;