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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user