mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Review suggestion
This commit is contained in:
parent
ca2df49fbb
commit
fd499e318d
@ -499,8 +499,13 @@ const std::vector<HeroTypeID> CMapGenerator::getAllPossibleHeroes() const
|
||||
|
||||
bool heroUsedAsStarting = false;
|
||||
for (auto const & player : map->getMapGenOptions().getPlayersSettings())
|
||||
{
|
||||
if (player.second.getStartingHero() == hero)
|
||||
{
|
||||
heroUsedAsStarting = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (heroUsedAsStarting)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user