mirror of https://github.com/OpenTTD/OpenTTD.git
Orders window changes tooltip depending on vehicle type but did check if widget exists.
This commit is contained in:
parent
e2d36f626b
commit
e9ea837311
|
@ -785,7 +785,9 @@ public:
|
||||||
|
|
||||||
this->CreateNestedTree();
|
this->CreateNestedTree();
|
||||||
this->vscroll = this->GetScrollbar(WID_O_SCROLLBAR);
|
this->vscroll = this->GetScrollbar(WID_O_SCROLLBAR);
|
||||||
this->GetWidget<NWidgetCore>(WID_O_DEPOT_ACTION)->tool_tip = STR_ORDER_TRAIN_DEPOT_ACTION_TOOLTIP + v->type;
|
if (NWidgetCore *nwid = this->GetWidget<NWidgetCore>(WID_O_DEPOT_ACTION); nwid != nullptr) {
|
||||||
|
nwid->tool_tip = STR_ORDER_TRAIN_DEPOT_ACTION_TOOLTIP + v->type;
|
||||||
|
}
|
||||||
this->FinishInitNested(v->index);
|
this->FinishInitNested(v->index);
|
||||||
|
|
||||||
this->selected_order = -1;
|
this->selected_order = -1;
|
||||||
|
|
Loading…
Reference in New Issue