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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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