فهرست منبع

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 سال پیش
والد
کامیت
206c5699cf
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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;
 }