summaryrefslogtreecommitdiff
path: root/src/autoreplace_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-10-20 21:25:25 +0000
committerfrosch <frosch@openttd.org>2009-10-20 21:25:25 +0000
commit21fdc65ce4ed3fd6edd7a066b48e7e5b5af4844c (patch)
treeeef854b25acaad11955c32190e6d1ffcd4e0748c /src/autoreplace_gui.cpp
parentb06da82c62a61f9d1ca2c9b852acae86bc1eda7f (diff)
downloadopenttd-21fdc65ce4ed3fd6edd7a066b48e7e5b5af4844c.tar.xz
(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.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index 198e22f25..8531a89cf 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -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);