1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-09 01:06:07 +02:00

Merge pull request #5231 from dydzio0614/random-hero-info

Replace random hero info in scenario info window with generated hero data
This commit is contained in:
Ivan Savenko
2025-01-09 12:58:55 +02:00
committed by GitHub

View File

@ -566,7 +566,7 @@ void CGameState::placeStartingHeroes()
continue;
HeroTypeID heroTypeId = pickNextHeroType(playerColor);
if(playerSettingPair.second.hero == HeroTypeID::NONE)
if(playerSettingPair.second.hero == HeroTypeID::NONE || playerSettingPair.second.hero == HeroTypeID::RANDOM)
playerSettingPair.second.hero = heroTypeId;
placeStartingHero(playerColor, HeroTypeID(heroTypeId), playerInfo.posOfMainTown);