summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-05-14 19:08:09 +0000
committerglx <glx@openttd.org>2008-05-14 19:08:09 +0000
commit22960e82aaf87973c471c190f693754c9f018afb (patch)
tree5b2fe862e96090779d040f97d92fd03e1ea52438
parent7890344bbd235aaa4c34c7a5b1bbe3981a9e1dc2 (diff)
downloadopenttd-22960e82aaf87973c471c190f693754c9f018afb.tar.xz
(svn r13092) -Fix (r13042): don't add a variable in a subclass when the parent class already have it
-rw-r--r--src/misc_gui.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index e6370d969..684b225ab 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -997,10 +997,9 @@ enum QueryStringWidgets {
struct QueryStringWindow : public QueryStringBaseWindow
{
- Window *parent;
-
- QueryStringWindow(const WindowDesc *desc, Window *parent) : QueryStringBaseWindow(desc), parent(parent)
+ QueryStringWindow(const WindowDesc *desc, Window *parent) : QueryStringBaseWindow(desc)
{
+ this->parent = parent;
SetBit(_no_scroll, SCROLL_EDIT);
this->FindWindowPlacementAndResize(desc);