mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r25538) -Fix [FS#5567] (r25283): Use the UI index of the selected object to make it visible when re-opening the build object window. (sbr)
This commit is contained in:
parent
538159cb1d
commit
17132a6a6f
@ -107,7 +107,7 @@ public:
|
||||
this->FindWindowPlacementAndResize(this->width, this->height);
|
||||
}
|
||||
|
||||
if (_selected_object_index != -1) matrix->SetClicked(_selected_object_index);
|
||||
if (_selected_object_index != -1) matrix->SetClicked(ObjectClass::Get(_selected_object_class)->GetUIFromIndex(_selected_object_index));
|
||||
}
|
||||
|
||||
virtual ~BuildObjectWindow()
|
||||
|
Loading…
Reference in New Issue
Block a user