1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-28 06:34:33 +01:00

Codechange: do not implicitly convert during assignment to StrongType

This commit is contained in:
Rubidium
2025-01-01 18:50:57 +01:00
committed by rubidium42
parent 448d6ede4a
commit c0df898ac5
25 changed files with 57 additions and 58 deletions

View File

@@ -2465,10 +2465,10 @@ struct ScenarioEditorToolbarWindow : Window {
TimerGameCalendar::Year value;
if (!str->empty()) {
value = atoi(str->c_str());
value = TimerGameCalendar::Year{atoi(str->c_str())};
} else {
/* An empty string means revert to the default */
value = CalendarTime::DEF_START_YEAR.base();
value = TimerGameCalendar::Year{CalendarTime::DEF_START_YEAR.base()};
}
SetStartingYear(value);