Codechange: remove unneeded casts

This commit is contained in:
Rubidium
2025-02-02 17:48:07 +01:00
committed by rubidium42
parent 9bfddcdbbe
commit 6f8b9fc737
7 changed files with 67 additions and 67 deletions

View File

@@ -45,7 +45,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->owner = this->window_number;
NWidgetStacked *wi = this->GetWidget<NWidgetStacked>(WID_GOAL_SELECT_BUTTONS);
wi->SetDisplayedPlane(window_number == INVALID_COMPANY ? 1 : 0);
this->OnInvalidateData(0);