summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-09-12 14:35:52 +0000
committerzuu <zuu@openttd.org>2013-09-12 14:35:52 +0000
commit24481998fa7247fbde8652077c308c95f8a6d6a4 (patch)
tree55cacd0172f4b3898fa662c1719a23a113bf480e /src
parentb8c6ac60a6b490aa8c66d0dbec4f7757f3b023d1 (diff)
downloadopenttd-24481998fa7247fbde8652077c308c95f8a6d6a4.tar.xz
(svn r25759) -Fix (r25369): Set the owner flag of the goal and story windows
Diffstat (limited to 'src')
-rw-r--r--src/goal_gui.cpp1
-rw-r--r--src/story_gui.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/goal_gui.cpp b/src/goal_gui.cpp
index f401b6dc1..b3a42bade 100644
--- a/src/goal_gui.cpp
+++ b/src/goal_gui.cpp
@@ -42,6 +42,7 @@ struct GoalListWindow : public Window {
this->CreateNestedTree();
this->vscroll = this->GetScrollbar(WID_GOAL_SCROLLBAR);
this->FinishInitNested(window_number);
+ this->owner = (Owner)this->window_number;
this->OnInvalidateData(0);
}
diff --git a/src/story_gui.cpp b/src/story_gui.cpp
index e2a325911..b6f02552d 100644
--- a/src/story_gui.cpp
+++ b/src/story_gui.cpp
@@ -426,6 +426,7 @@ public:
/* story_page_elements will get built by SetSelectedPage */
this->FinishInitNested(window_number);
+ this->owner = (Owner)this->window_number;
/* Initialize selected vars. */
this->selected_generic_title[0] = '\0';