1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

CGHeroInstance::nextPrimarySkill: don't use GS RNG directly

Code used from both GS and CGameHandler.
This commit is contained in:
Arseniy Shestakov
2016-08-23 19:12:10 +03:00
parent c8bcb14d34
commit ca819b3cda
3 changed files with 5 additions and 5 deletions

View File

@@ -204,7 +204,7 @@ void CGameHandler::levelUpHero(const CGHeroInstance * hero)
// give primary skill
logGlobal->trace("%s got level %d", hero->name, hero->level);
auto primarySkill = hero->nextPrimarySkill();
auto primarySkill = hero->nextPrimarySkill(getRandomGenerator());
SetPrimSkill sps;
sps.id = hero->id;