Fix crash in competitor orders GUI.
Fix attempt to set occupancy widget displayed pane in competitors order GUI, where the occupancy widget is not present.
This commit is contained in:
@@ -770,7 +770,9 @@ public:
|
|||||||
|
|
||||||
this->CreateNestedTree();
|
this->CreateNestedTree();
|
||||||
this->vscroll = this->GetScrollbar(WID_O_SCROLLBAR);
|
this->vscroll = this->GetScrollbar(WID_O_SCROLLBAR);
|
||||||
this->GetWidget<NWidgetStacked>(WID_O_SEL_OCCUPANCY)->SetDisplayedPlane(SZSP_NONE);
|
if (v->owner == _local_company) {
|
||||||
|
this->GetWidget<NWidgetStacked>(WID_O_SEL_OCCUPANCY)->SetDisplayedPlane(SZSP_NONE);
|
||||||
|
}
|
||||||
this->FinishInitNested(v->index);
|
this->FinishInitNested(v->index);
|
||||||
if (v->owner == _local_company) {
|
if (v->owner == _local_company) {
|
||||||
this->DisableWidget(WID_O_EMPTY);
|
this->DisableWidget(WID_O_EMPTY);
|
||||||
|
Reference in New Issue
Block a user