1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Fix tab index being overwritten for scripted windows (#20630)

This commit is contained in:
Matthias Moninger
2023-07-18 23:08:42 +03:00
committed by GitHub
parent ce86aa029f
commit 5924185a6b
2 changed files with 1 additions and 2 deletions

View File

@@ -285,7 +285,6 @@ WindowBase* WindowCreate(
w->max_height = height; w->max_height = height;
w->focus = std::nullopt; w->focus = std::nullopt;
w->page = 0;
ColourSchemeUpdate(w); ColourSchemeUpdate(w);
w->Invalidate(); w->Invalidate();

View File

@@ -56,7 +56,7 @@ struct WindowBase
TrackListVariables track_list; TrackListVariables track_list;
union union
{ {
int16_t page; int16_t page{};
TileInspectorPage tileInspectorPage; TileInspectorPage tileInspectorPage;
}; };
uint16_t frame_no{}; // updated every tic for motion in windows sprites uint16_t frame_no{}; // updated every tic for motion in windows sprites