(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 b06da82c62
commit 21fdc65ce4
3 changed files with 10 additions and 11 deletions

View File

@@ -206,7 +206,6 @@ public:
this->sel_engine[0] = INVALID_ENGINE;
this->sel_engine[1] = INVALID_ENGINE;
this->window_number = vehicletype;
this->InitNested(desc, vehicletype);
this->vscroll.SetCapacity(this->GetWidget<NWidgetBase>(RVW_WIDGET_LEFT_MATRIX)->current_y / this->resize.step_height);