diff --git a/distribution/changelog.txt b/distribution/changelog.txt index da00a1ba58..44a05a24d9 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -36,6 +36,7 @@ - Fix: [#17703] (undefined string) when building on invalid height. - Fix: [#17776] “Other Parks” tab uses separate lists for SC4/SC6 and .park scenarios. - Fix: [#17784] Colour preset RNG is biased (original bug). +- Fix: [#17834] Finance window becomes blank after 4096 years. 0.4.1 (2022-07-04) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/Finances.cpp b/src/openrct2-ui/windows/Finances.cpp index efd8e7d54c..3ac818118c 100644 --- a/src/openrct2-ui/windows/Finances.cpp +++ b/src/openrct2-ui/windows/Finances.cpp @@ -379,14 +379,12 @@ public: } // Expenditure / Income values for each month - int16_t currentMonthYear = static_cast(gDateMonthsElapsed); + uint16_t currentMonthYear = static_cast(gDateMonthsElapsed); for (int32_t i = SummaryMaxAvailableMonth(); i >= 0; i--) { screenCoords.y = 0; - int16_t monthyear = currentMonthYear - i; - if (monthyear < 0) - continue; + uint16_t monthyear = currentMonthYear - i; // Month heading auto ft = Formatter();