summaryrefslogtreecommitdiff
path: root/src/depot_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/depot_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/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 671a97f6f..39f91a360 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -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);
}