From bfddc90ff46348a8ca8b6dc1994c97a250954e73 Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Sat, 28 Oct 2023 17:56:21 +0000 Subject: [PATCH] AI/BattleAI.cpp: Use "std::array" or "std::vector" instead of a C-style array. Variables of array type should not be declared cpp:M23_356 --- AI/BattleAI/BattleAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/BattleAI/BattleAI.cpp b/AI/BattleAI/BattleAI.cpp index 45e1d626e..6881060e9 100644 --- a/AI/BattleAI/BattleAI.cpp +++ b/AI/BattleAI/BattleAI.cpp @@ -197,7 +197,7 @@ BattleAction CBattleAI::useCatapult(const BattleID & battleID, const CStack * st } else { - EWallPart wallParts[] = { + std::array wallParts { EWallPart::KEEP, EWallPart::BOTTOM_TOWER, EWallPart::UPPER_TOWER,