Browse Source

AI/BattleAI/BattleAI.cpp: Use Class template argument deduction for wallParts array

Co-authored-by: Ivan Savenko <[email protected]>
Alexander Wilms 2 years ago
parent
commit
ed86a917eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AI/BattleAI/BattleAI.cpp

+ 1 - 1
AI/BattleAI/BattleAI.cpp

@@ -197,7 +197,7 @@ BattleAction CBattleAI::useCatapult(const BattleID & battleID, const CStack * st
 	}
 	else
 	{
-		std::array<EWallPart, 7> wallParts {
+		std::array wallParts {
 			EWallPart::KEEP,
 			EWallPart::BOTTOM_TOWER,
 			EWallPart::UPPER_TOWER,