From f8c8fedad7207d49804edfc2f13682e977ac6f2f Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 27 May 2026 08:34:50 +0100 Subject: [PATCH] Codefix: avoid mixing C and C++ style arrays --- src/tunnelbridge_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index d041a9182c..ba66786c1e 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -1089,9 +1089,9 @@ static void DrawBridgePillars(const PalSpriteID &psid, const TileInfo *ti, Axis static constexpr AxisIndexArray back_pillar_offset{0, 9}; ///< sprite position offset of back facing pillar static const int INF = 1000; ///< big number compared to sprite size - static constexpr AxisIndexArray half_pillar_sub_sprite{{{ - { { -14, -INF, INF, INF }, { -INF, -INF, -15, INF } }, // X axis, north and south - { { -INF, -INF, 15, INF }, { 16, -INF, INF, INF } }, // Y axis, north and south + static constexpr AxisIndexArray> half_pillar_sub_sprite{{{ + {{ { -14, -INF, INF, INF }, { -INF, -INF, -15, INF } }}, // X axis, north and south + {{ { -INF, -INF, 15, INF }, { 16, -INF, INF, INF } }}, // Y axis, north and south }}}; if (psid.sprite == 0) return;