summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-11 11:41:18 +0000
committerrubidium <rubidium@openttd.org>2008-05-11 11:41:18 +0000
commit29ad1d442a4943f08f79e7ed913f6ff637348cd2 (patch)
tree8cd392a540fd2bd013cfe301924f997a30e4d4ba /src/network
parent1f70b47e2285ec85a3c3ff38d8364cfff71b2b9c (diff)
downloadopenttd-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/network')
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 122c601f8..9ef0a88a9 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1038,6 +1038,8 @@ struct NetworkLobbyWindow : public Window {
{
strcpy(_edit_str_net_buf, "");
this->vscroll.cap = 10;
+
+ this->FindWindowPlacementAndResize(desc);
}
virtual void OnPaint()