1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Review suggestion

This commit is contained in:
Ivan Savenko 2024-01-14 15:36:29 +02:00
parent ca2df49fbb
commit fd499e318d

View File

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