(svn r17830) -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately.
This commit is contained in:
@@ -230,11 +230,9 @@ struct DepotWindow : Window {
|
||||
this->type = type;
|
||||
|
||||
this->CreateNestedTree(desc);
|
||||
|
||||
this->window_number = tile;
|
||||
this->SetupWidgetData(type);
|
||||
|
||||
this->FinishInitNested(desc, tile);
|
||||
|
||||
this->owner = GetTileOwner(tile);
|
||||
this->CreateDepotListWindow(type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user