summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/compat/settings_sl_compat.h10
-rw-r--r--src/saveload/settings_sl.cpp3
2 files changed, 7 insertions, 6 deletions
diff --git a/src/saveload/compat/settings_sl_compat.h b/src/saveload/compat/settings_sl_compat.h
index 081779bf5..00bc026a4 100644
--- a/src/saveload/compat/settings_sl_compat.h
+++ b/src/saveload/compat/settings_sl_compat.h
@@ -107,11 +107,11 @@ const SaveLoadCompat _settings_sl_compat[] = {
SLC_VAR("vehicle.max_roadveh"),
SLC_VAR("vehicle.max_aircraft"),
SLC_VAR("vehicle.max_ships"),
- SLC_VAR("_old_vds.servint_ispercent"),
- SLC_VAR("_old_vds.servint_trains"),
- SLC_VAR("_old_vds.servint_roadveh"),
- SLC_VAR("_old_vds.servint_ships"),
- SLC_VAR("_old_vds.servint_aircraft"),
+ SLC_VAR("vehicle.servint_ispercent"),
+ SLC_VAR("vehicle.servint_trains"),
+ SLC_VAR("vehicle.servint_roadveh"),
+ SLC_VAR("vehicle.servint_ships"),
+ SLC_VAR("vehicle.servint_aircraft"),
SLC_VAR("order.no_servicing_if_no_breakdowns"),
SLC_VAR("vehicle.wagon_speed_limits"),
SLC_VAR("vehicle.disable_elrails"),
diff --git a/src/saveload/settings_sl.cpp b/src/saveload/settings_sl.cpp
index f19ff910c..8b683564b 100644
--- a/src/saveload/settings_sl.cpp
+++ b/src/saveload/settings_sl.cpp
@@ -91,7 +91,8 @@ static std::vector<SaveLoad> GetSettingsDesc(const SettingTable &settings, bool
SaveLoad sv = sd->save;
/* Replace the name with the actual name of the setting. */
- if (!sd->name.empty()) sv.name = sd->name;
+ assert(!sd->name.empty());
+ sv.name = sd->name;
saveloads.push_back(sv);
}