Codechange: name a few unnamed settings as to not to have to check for that being empty

This commit is contained in:
Rubidium
2021-07-08 19:12:10 +02:00
committed by rubidium42
parent a70aa5df49
commit 94881f5a34
3 changed files with 12 additions and 11 deletions

View File

@@ -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);
}