1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Replace random hero info in scenario info window with generated hero data

This commit is contained in:
Dydzio
2025-01-08 21:01:15 +01:00
parent 8406840f76
commit eb4b8fdddd

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