1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 18:02:37 +01:00

Fix #11345: Use correct default button value for vehicle service interval setting

This commit is contained in:
André Cheng
2024-03-25 20:38:44 +00:00
committed by rubidium42
parent a4071b78d7
commit fd80a1ec66
3 changed files with 32 additions and 0 deletions

View File

@@ -2734,6 +2734,7 @@ struct GameSettingsWindow : Window {
value = ClampTo<int32_t>(llvalue);
} else {
value = sd->def;
if (sd->get_def_cb != nullptr) sd->get_def_cb(value);
}
SetSettingValue(this->valuewindow_entry->setting, value);