1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +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
commit ed268159f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);