Fix #10917: Pay loan interest before generating statistics (#11040)

This commit is contained in:
Finn Willard 2023-06-20 13:02:09 -07:00 committed by GitHub
parent b68d56d94d
commit f23249f8f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1977,12 +1977,12 @@ void LoadUnloadStation(Station *st)
*/ */
static IntervalTimer<TimerGameCalendar> _companies_monthly({TimerGameCalendar::MONTH, TimerGameCalendar::Priority::COMPANY}, [](auto) static IntervalTimer<TimerGameCalendar> _companies_monthly({TimerGameCalendar::MONTH, TimerGameCalendar::Priority::COMPANY}, [](auto)
{ {
CompaniesPayInterest();
CompaniesGenStatistics(); CompaniesGenStatistics();
if (_settings_game.economy.inflation) { if (_settings_game.economy.inflation) {
AddInflation(); AddInflation();
RecomputePrices(); RecomputePrices();
} }
CompaniesPayInterest();
HandleEconomyFluctuations(); HandleEconomyFluctuations();
}); });