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->owner = (Owner)this->window_number;
|
||||
|
||||
this->CreateNestedTree();
|
||||
this->vscroll = this->GetScrollbar(WID_CI_SCROLLBAR);
|
||||
this->vscroll->SetStepSize(GetCharacterHeight(FS_NORMAL));
|
||||
this->FinishInitNested(window_number);
|
||||
|
||||
this->owner = (Owner)this->window_number;
|
||||
}
|
||||
|
||||
void UpdateRailRoadTypes()
|
||||
|
Reference in New Issue
Block a user