From 8ffb4122df903393bceca49a25ac81cc42cca3ff Mon Sep 17 00:00:00 2001 From: rubidium42 Date: Tue, 18 May 2021 20:57:44 +0200 Subject: Codechange: just pass the SettingDesc to SetSettingValue and remove distinction between (non)company --- src/news_gui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/news_gui.cpp') diff --git a/src/news_gui.cpp b/src/news_gui.cpp index e3fb60033..58d62dde8 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -253,8 +253,7 @@ static_assert(lengthof(_news_type_data) == NT_END); */ NewsDisplay NewsTypeData::GetDisplay() const { - uint index; - const SettingDesc *sd = GetSettingFromName(this->name, &index); + const SettingDesc *sd = GetSettingFromName(this->name); assert(sd != nullptr); void *ptr = GetVariableAddress(nullptr, &sd->save); return (NewsDisplay)ReadValue(ptr, sd->save.conv); -- cgit v1.2.3-54-g00ecf