소스 검색

Review suggestion

Ivan Savenko 1 년 전
부모
커밋
fd499e318d
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      lib/rmg/CMapGenerator.cpp

+ 5 - 0
lib/rmg/CMapGenerator.cpp

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