1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

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
This commit is contained in:
Arseniy Shestakov 2016-08-19 23:31:54 +03:00
parent ec22da4412
commit 206c5699cf

View File

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