Codechange: use the name string in SaveLoad for the name of the Setting as well

This commit is contained in:
Rubidium
2021-07-08 19:26:21 +02:00
committed by rubidium42
parent 01139d3368
commit ede3f79475
3 changed files with 29 additions and 36 deletions

View File

@@ -89,11 +89,7 @@ static std::vector<SaveLoad> GetSettingsDesc(const SettingTable &settings, bool
continue;
}
SaveLoad sv = sd->save;
/* Replace the name with the actual name of the setting. */
assert(!sd->GetName().empty());
sv.name = sd->GetName();
saveloads.push_back(sv);
saveloads.push_back(sd->save);
}
return saveloads;