1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix #17996 - Finances window not cleared when starting some .park scenarios (#19368)

* Clear Finances Graph on Scenario Load

* Update changelog

---------

Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
This commit is contained in:
kyphii
2023-02-13 16:30:47 -05:00
committed by GitHub
parent 3814d6b3af
commit dfb2c3fa60
2 changed files with 9 additions and 0 deletions

View File

@@ -25,6 +25,7 @@
- Change: [#19091] [Plugin] Add game action information to callback arguments of custom actions.
- Change: [#19233] Reduce lift speed minimum and maximum values for “Classic Wooden Coaster”.
- Fix: [#474] Mini golf window shows more players than there actually are (original bug).
- Fix: [#17996] Finances window not cleared when starting some .park scenarios
- Fix: [#18260] Crash opening parks that have multiple tiles referencing the same banner entry.
- Fix: [#18467] “Selected only” Object Selection filter is active in Track Designs Manager, and cannot be toggled.
- Fix: [#18905] Ride Construction window theme is not applied correctly.

View File

@@ -196,6 +196,14 @@ void FinanceResetHistory()
gWeeklyProfitHistory[i] = MONEY64_UNDEFINED;
gParkValueHistory[i] = MONEY64_UNDEFINED;
}
for (uint32_t i = 0; i < EXPENDITURE_TABLE_MONTH_COUNT; ++i)
{
for (uint32_t j = 0; j < static_cast<int32_t>(ExpenditureType::Count); ++j)
{
gExpenditureTable[i][j] = 0;
}
}
}
/**