mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Merge pull request #20644 from ZehMatt/fix-20642
Fix 20642: Empty track list due to uninitialized memory
This commit is contained in:
@@ -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)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user