Forráskód Böngészése

CGHeroInstance::SecondarySkillsInfo: always set rand seed

Seed will always be set again on hero initialization, but for save sync it's must be same before that. Related to issue 2459
Arseniy Shestakov 9 éve
szülő
commit
206c5699cf
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      lib/mapObjects/CGHeroInstance.cpp

+ 1 - 0
lib/mapObjects/CGHeroInstance.cpp

@@ -469,6 +469,7 @@ ui8 CGHeroInstance::maxlevelsToWisdom() const
 
 CGHeroInstance::SecondarySkillsInfo::SecondarySkillsInfo()
 {
+	rand.setSeed(0);
 	magicSchoolCounter = 1;
 	wisdomCounter = 1;
 }