Fix company infrastructure windows not being marked as a company window
Fixes it not being removed on company deletion, which could cause a crash
This commit is contained in:
@@ -1845,12 +1845,12 @@ struct CompanyInfrastructureWindow : Window
|
|||||||
{
|
{
|
||||||
this->UpdateRailRoadTypes();
|
this->UpdateRailRoadTypes();
|
||||||
|
|
||||||
this->owner = (Owner)this->window_number;
|
|
||||||
|
|
||||||
this->CreateNestedTree();
|
this->CreateNestedTree();
|
||||||
this->vscroll = this->GetScrollbar(WID_CI_SCROLLBAR);
|
this->vscroll = this->GetScrollbar(WID_CI_SCROLLBAR);
|
||||||
this->vscroll->SetStepSize(GetCharacterHeight(FS_NORMAL));
|
this->vscroll->SetStepSize(GetCharacterHeight(FS_NORMAL));
|
||||||
this->FinishInitNested(window_number);
|
this->FinishInitNested(window_number);
|
||||||
|
|
||||||
|
this->owner = (Owner)this->window_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateRailRoadTypes()
|
void UpdateRailRoadTypes()
|
||||||
|
Reference in New Issue
Block a user