1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +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->focus = std::nullopt;
w->page = 0;
ColourSchemeUpdate(w);
w->Invalidate();

View File

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