From 3e3f8e7b153642b0c04d064e4f39eeb54843a5f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 19 Jul 2023 17:22:33 +0300 Subject: [PATCH 1/2] Fix #20642: Track list is sometimes empty due to uninitialized filter --- src/openrct2-ui/windows/TrackList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/TrackList.cpp b/src/openrct2-ui/windows/TrackList.cpp index 1f52565fa7..79c094436c 100644 --- a/src/openrct2-ui/windows/TrackList.cpp +++ b/src/openrct2-ui/windows/TrackList.cpp @@ -73,7 +73,7 @@ class TrackListWindow final : public Window { private: std::vector _trackDesigns; - utf8 _filterString[USER_STRING_MAX_LENGTH]; + utf8 _filterString[USER_STRING_MAX_LENGTH]{}; std::vector _filteredTrackIds; uint16_t _loadedTrackDesignIndex; std::unique_ptr _loadedTrackDesign; From c6695b9aa70f07be4ebc8a2c4fe140b5d6f89bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 19 Jul 2023 17:23:18 +0300 Subject: [PATCH 2/2] Update changelog.txt --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index ab7910cfae..d507fe8003 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -32,6 +32,7 @@ - Fix: [#20484] Console caret not properly updated when using command history. - Fix: [#20543] Crash using show segments height from debug paint options. - Fix: [#20607] Infinite loop when renaming rides with default names longer than 32 bytes. +- Fix: [#20642] Track list is sometimes empty due to uninitialized data for the filter string. 0.4.5 (2023-05-08) ------------------------------------------------------------------------