From eb4b8fdddd55f76e51b1e0fed30529fd41d3c736 Mon Sep 17 00:00:00 2001 From: Dydzio Date: Wed, 8 Jan 2025 21:01:15 +0100 Subject: [PATCH] Replace random hero info in scenario info window with generated hero data --- lib/gameState/CGameState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gameState/CGameState.cpp b/lib/gameState/CGameState.cpp index fe7e3264d..a633a6d03 100644 --- a/lib/gameState/CGameState.cpp +++ b/lib/gameState/CGameState.cpp @@ -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);