mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-15 16:32:41 +01:00
Codechange: Missing some conversions to WidgetID. (#11773)
This commit is contained in:
@@ -160,7 +160,7 @@ struct HelpWindow : public Window {
|
||||
}
|
||||
|
||||
private:
|
||||
void EnableTextfileButton(std::string_view filename, int button_widget)
|
||||
void EnableTextfileButton(std::string_view filename, WidgetID button_widget)
|
||||
{
|
||||
this->GetWidget<NWidgetLeaf>(button_widget)->SetDisabled(!FindGameManualFilePath(filename).has_value());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user