mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 11:44:17 +01:00
Codechange: add and use SetString over directly accessing widget_data
This commit is contained in:
@@ -327,7 +327,7 @@ struct NetworkChatWindow : public Window {
|
||||
assert((uint)this->dtype < lengthof(chat_captions));
|
||||
|
||||
this->CreateNestedTree();
|
||||
this->GetWidget<NWidgetCore>(WID_NC_DESTINATION)->widget_data = chat_captions[this->dtype];
|
||||
this->GetWidget<NWidgetCore>(WID_NC_DESTINATION)->SetString(chat_captions[this->dtype]);
|
||||
this->FinishInitNested(type);
|
||||
|
||||
this->SetFocusedWidget(WID_NC_TEXTBOX);
|
||||
|
||||
Reference in New Issue
Block a user