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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user