mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Make some non-const static variables const or constexpr
This commit is contained in:
@@ -1427,11 +1427,11 @@ CHallInterface::CBuildingBox::CBuildingBox(int x, int y, const CGTownInstance *
|
||||
|
||||
state = LOCPLINT->cb->canBuildStructure(town, building->bid);
|
||||
|
||||
static int panelIndex[12] =
|
||||
constexpr std::array panelIndex =
|
||||
{
|
||||
3, 3, 3, 0, 0, 2, 2, 1, 2, 2, 3, 3
|
||||
};
|
||||
static int iconIndex[12] =
|
||||
constexpr std::array iconIndex =
|
||||
{
|
||||
-1, -1, -1, 0, 0, 1, 2, -1, 1, 1, -1, -1
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user