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

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
This commit is contained in:
Alexander Wilms 2023-10-28 17:56:21 +00:00
parent 466cdb9d2b
commit bfddc90ff4

View File

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