Explorar o código

fix Ignissa bug the old way

Konstantin %!s(int64=2) %!d(string=hai) anos
pai
achega
6de042657c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;