1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Add get / set highlighted cell / selected cell

This commit is contained in:
Ted John
2020-05-06 22:34:56 +01:00
parent 5e427413a6
commit 4701dd3b9b
7 changed files with 80 additions and 8 deletions

View File

@@ -1106,11 +1106,11 @@ namespace OpenRCT2::Ui::Windows
{
if (w->custom_info != nullptr)
{
auto& customInfo = GetInfo(w);
auto& info = GetInfo(w);
auto scrollIndex = window_get_scroll_data_index(w, widgetIndex);
if (scrollIndex < static_cast<int32_t>(info.ListViews.size()))
{
return &customInfo.ListViews[scrollIndex];
return &info.ListViews[scrollIndex];
}
}
return nullptr;