diff options
author | rubidium <rubidium@openttd.org> | 2008-05-11 11:41:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-11 11:41:18 +0000 |
commit | 29ad1d442a4943f08f79e7ed913f6ff637348cd2 (patch) | |
tree | 8cd392a540fd2bd013cfe301924f997a30e4d4ba /src/industry_gui.cpp | |
parent | 1f70b47e2285ec85a3c3ff38d8364cfff71b2b9c (diff) | |
download | openttd-29ad1d442a4943f08f79e7ed913f6ff637348cd2.tar.xz |
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 1f38ef499..db1a93e63 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -163,6 +163,8 @@ public: this->selected_index = 0; this->selected_type = this->index[0]; this->callback_timer = DAY_TICKS; + + this->FindWindowPlacementAndResize(&_build_industry_desc); } virtual void OnPaint() |