From ede3f79475bc987a154783b874619c16d1aa643c Mon Sep 17 00:00:00 2001 From: Rubidium Date: Thu, 8 Jul 2021 19:26:21 +0200 Subject: Codechange: use the name string in SaveLoad for the name of the Setting as well --- src/saveload/settings_sl.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/saveload') 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 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; -- cgit v1.2.3-54-g00ecf