forked from mirror/OpenTTD
Codechange: add and use SetString over directly accessing widget_data
This commit is contained in:
@@ -373,7 +373,7 @@ public:
|
||||
this->CreateNestedTree();
|
||||
|
||||
this->town = Town::Get(window_number);
|
||||
if (this->town->larger_town) this->GetWidget<NWidgetCore>(WID_TV_CAPTION)->widget_data = STR_TOWN_VIEW_CITY_CAPTION;
|
||||
if (this->town->larger_town) this->GetWidget<NWidgetCore>(WID_TV_CAPTION)->SetString(STR_TOWN_VIEW_CITY_CAPTION);
|
||||
|
||||
this->FinishInitNested(window_number);
|
||||
|
||||
|
Reference in New Issue
Block a user