Merge pull request #20644 from ZehMatt/fix-20642

Fix 20642: Empty track list due to uninitialized memory
This commit is contained in:
Matthias Moninger 2023-07-19 17:45:56 +03:00 committed by GitHub
commit 0bfc9f0bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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)
------------------------------------------------------------------------

View File

@ -73,7 +73,7 @@ class TrackListWindow final : public Window
{
private:
std::vector<TrackDesignFileRef> _trackDesigns;
utf8 _filterString[USER_STRING_MAX_LENGTH];
utf8 _filterString[USER_STRING_MAX_LENGTH]{};
std::vector<uint16_t> _filteredTrackIds;
uint16_t _loadedTrackDesignIndex;
std::unique_ptr<TrackDesign> _loadedTrackDesign;