|
@@ -499,8 +499,13 @@ const std::vector<HeroTypeID> CMapGenerator::getAllPossibleHeroes() const
|
|
|
|
|
|
|
|
bool heroUsedAsStarting = false;
|
|
bool heroUsedAsStarting = false;
|
|
|
for (auto const & player : map->getMapGenOptions().getPlayersSettings())
|
|
for (auto const & player : map->getMapGenOptions().getPlayersSettings())
|
|
|
|
|
+ {
|
|
|
if (player.second.getStartingHero() == hero)
|
|
if (player.second.getStartingHero() == hero)
|
|
|
|
|
+ {
|
|
|
heroUsedAsStarting = true;
|
|
heroUsedAsStarting = true;
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (heroUsedAsStarting)
|
|
if (heroUsedAsStarting)
|
|
|
continue;
|
|
continue;
|