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 | e63137f47f01b9567d9d4d9984ef0c5871d95db4 (patch) | |
tree | 8cd392a540fd2bd013cfe301924f997a30e4d4ba /src/autoreplace_gui.cpp | |
parent | 599bc8942ee862f1dc681bb70bb03faf7bb921f0 (diff) | |
download | openttd-e63137f47f01b9567d9d4d9984ef0c5871d95db4.tar.xz |
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index 77b01e74f..af5d3d4a6 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -301,6 +301,8 @@ public: this->caption_color = _local_player; this->sel_group = id_g; this->vscroll2.cap = this->vscroll.cap; // these two are always the same + + this->FindWindowPlacementAndResize(desc); } virtual void OnPaint() |