summaryrefslogtreecommitdiff
path: root/src/saveload/settings_sl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/settings_sl.cpp')
-rw-r--r--src/saveload/settings_sl.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}