(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:
frosch
2009-10-20 21:25:25 +00:00
parent 61474f5c1f
commit 9259446b76
3 changed files with 10 additions and 11 deletions

View File

@@ -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);
}