diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index 57934ce75785..d9c0d8a572c8 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -773,13 +773,14 @@ void Park::UpdateHistories() { currentWeeklyProfit /= gameState.WeeklyProfitAverageDivisor; } - HistoryPushRecord(gameState.WeeklyProfitHistory, currentWeeklyProfit); + constexpr auto profitHistorySize = std::extent_v; + HistoryPushRecord(gameState.WeeklyProfitHistory, currentWeeklyProfit); gameState.WeeklyProfitAverageDividend = 0; gameState.WeeklyProfitAverageDivisor = 0; // Update park value history - HistoryPushRecord>( - gameState.ParkValueHistory, gameState.ParkValue); + constexpr auto parkValueHistorySize = std::extent_v; + HistoryPushRecord(gameState.ParkValueHistory, gameState.ParkValue); // Invalidate relevant windows auto intent = Intent(INTENT_ACTION_UPDATE_GUEST_COUNT);