diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index fea362f075..643456e4dc 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1334,7 +1334,7 @@ private: { gCashHistory[i] = _s4.cash_history[i]; gParkValueHistory[i] = ToMoney64(CorrectRCT1ParkValue(_s4.park_value_history[i])); - gWeeklyProfitHistory[i] = _s4.weekly_profit_history[i]; + gWeeklyProfitHistory[i] = ToMoney64(_s4.weekly_profit_history[i]); } for (size_t i = 0; i < RCT12_EXPENDITURE_TABLE_MONTH_COUNT; i++) diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 86f3f7f341..336aa41207 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -311,7 +311,7 @@ public: gCurrentExpenditure = _s6.current_expenditure; gCurrentProfit = _s6.current_profit; - gWeeklyProfitAverageDividend = _s6.weekly_profit_average_dividend; + gWeeklyProfitAverageDividend = ToMoney64(_s6.weekly_profit_average_dividend); gWeeklyProfitAverageDivisor = _s6.weekly_profit_average_divisor; // pad_0135833A @@ -320,7 +320,7 @@ public: for (size_t i = 0; i < RCT12_FINANCE_GRAPH_SIZE; i++) { gCashHistory[i] = _s6.balance_history[i]; - gWeeklyProfitHistory[i] = _s6.weekly_profit_history[i]; + gWeeklyProfitHistory[i] = ToMoney64(_s6.weekly_profit_history[i]); gParkValueHistory[i] = ToMoney64(_s6.park_value_history[i]); } diff --git a/src/openrct2/scenario/Scenario.h b/src/openrct2/scenario/Scenario.h index 4c9513a124..e3a74c6977 100644 --- a/src/openrct2/scenario/Scenario.h +++ b/src/openrct2/scenario/Scenario.h @@ -194,7 +194,7 @@ struct rct_s6_data // SC6[11] money32 current_expenditure; money32 current_profit; - uint32_t weekly_profit_average_dividend; + money32 weekly_profit_average_dividend; uint16_t weekly_profit_average_divisor; uint8_t pad_0135833A[2];