Fix company infrastructure windows not being marked as a company window

Fixes it not being removed on company deletion, which could cause a crash
pull/661/head
Jonathan G Rennison 3 months ago
parent 0d20a54dc5
commit c09fdb0444

@ -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()

Loading…
Cancel
Save