diff options
author | Rubidium <rubidium@openttd.org> | 2021-07-08 19:26:21 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-07-09 22:53:30 +0200 |
commit | ede3f79475bc987a154783b874619c16d1aa643c (patch) | |
tree | 23dba03edf74c3f245cdae5c080d1fdfffc69501 /src/saveload | |
parent | 01139d33686945db4ccb77b62acadf2caab3b93e (diff) | |
download | openttd-ede3f79475bc987a154783b874619c16d1aa643c.tar.xz |
Codechange: use the name string in SaveLoad for the name of the Setting as well
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/settings_sl.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/saveload/settings_sl.cpp b/src/saveload/settings_sl.cpp index a93979238..1b1db8fa6 100644 --- a/src/saveload/settings_sl.cpp +++ b/src/saveload/settings_sl.cpp @@ -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; |