mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r25759) -Fix (r25369): Set the owner flag of the goal and story windows
This commit is contained in:
parent
b8c6ac60a6
commit
24481998fa
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue