mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix tab index being overwritten for scripted windows (#20630)
This commit is contained in:
parent
ce86aa029f
commit
5924185a6b
|
@ -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();
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue