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/misc_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/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 21f06d9e3..132863444 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -184,6 +184,8 @@ public: DEBUG(misc, LANDINFOD_LEVEL, "m6 = %#x", _m[tile].m6); DEBUG(misc, LANDINFOD_LEVEL, "m7 = %#x", _me[tile].m7); #undef LANDINFOD_LEVEL + + this->FindWindowPlacementAndResize(&_land_info_desc); } }; @@ -1125,6 +1127,8 @@ struct QueryWindow : public Window { this->widget[QUERY_WIDGET_CAPTION].data = caption; this->message = message; this->proc = callback; + + this->FindWindowPlacementAndResize(desc); } ~QueryWindow() |