From 9b8473ef75517bff5bcd86dfb1ab31ba74fa1a7a Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Thu, 25 Jan 2024 12:33:02 +0100 Subject: [PATCH] Get size of WeeklyProfitHistory in compile time --- src/openrct2/world/Park.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index 57934ce75785..fce1e594ab8b 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -773,7 +773,8 @@ void Park::UpdateHistories() { currentWeeklyProfit /= gameState.WeeklyProfitAverageDivisor; } - HistoryPushRecord(gameState.WeeklyProfitHistory, currentWeeklyProfit); + HistoryPushRecord>( + gameState.WeeklyProfitHistory, currentWeeklyProfit); gameState.WeeklyProfitAverageDividend = 0; gameState.WeeklyProfitAverageDivisor = 0;