mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 04:59:11 +00:00
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
This commit is contained in:
@@ -180,7 +180,7 @@ public:
|
||||
|
||||
/* When downloading is finished change cancel in ok */
|
||||
if (this->downloaded_bytes == this->total_bytes) {
|
||||
this->nested_array[NCDSWW_CANCELOK]->widget_data = STR_BUTTON_OK;
|
||||
this->GetWidget<NWidgetCore>(NCDSWW_CANCELOK)->widget_data = STR_BUTTON_OK;
|
||||
}
|
||||
|
||||
this->SetDirty();
|
||||
|
Reference in New Issue
Block a user