Codechange: use SetToolTip instead of accessing tool_tip directly
This commit is contained in:
@@ -812,7 +812,7 @@ public:
|
||||
this->CreateNestedTree();
|
||||
this->vscroll = this->GetScrollbar(WID_O_SCROLLBAR);
|
||||
if (NWidgetCore *nwid = this->GetWidget<NWidgetCore>(WID_O_DEPOT_ACTION); nwid != nullptr) {
|
||||
nwid->tool_tip = STR_ORDER_TRAIN_DEPOT_ACTION_TOOLTIP + v->type;
|
||||
nwid->SetToolTip(STR_ORDER_TRAIN_DEPOT_ACTION_TOOLTIP + v->type);
|
||||
}
|
||||
this->FinishInitNested(v->index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user