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:
parent
466cdb9d2b
commit
bfddc90ff4
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user