mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r25830) -Fix [FS#5742] (r25540): In BuildObjectWindow, ensure the object spec matrix is always initialized. (sbr)
This commit is contained in:
parent
7a75010b25
commit
3d5a91424a
@ -82,8 +82,8 @@ public:
|
|||||||
NWidgetMatrix *matrix = this->GetWidget<NWidgetMatrix>(WID_BO_SELECT_MATRIX);
|
NWidgetMatrix *matrix = this->GetWidget<NWidgetMatrix>(WID_BO_SELECT_MATRIX);
|
||||||
matrix->SetScrollbar(this->GetScrollbar(WID_BO_SELECT_SCROLL));
|
matrix->SetScrollbar(this->GetScrollbar(WID_BO_SELECT_SCROLL));
|
||||||
|
|
||||||
|
this->SelectOtherClass(_selected_object_class);
|
||||||
if (this->CanRestoreSelectedObject()) {
|
if (this->CanRestoreSelectedObject()) {
|
||||||
this->SelectOtherClass(_selected_object_class),
|
|
||||||
this->SelectOtherObject(_selected_object_index);
|
this->SelectOtherObject(_selected_object_index);
|
||||||
} else {
|
} else {
|
||||||
this->SelectFirstAvailableObject(true);
|
this->SelectFirstAvailableObject(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user