summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-18 20:57:44 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-27 18:49:43 +0200
commit8ffb4122df903393bceca49a25ac81cc42cca3ff (patch)
tree0e1d390cc284f83e8cde908f33e6d901e2533d0f /src/news_gui.cpp
parentdb54e208256958f721bf74bf058b45039be5b488 (diff)
downloadopenttd-8ffb4122df903393bceca49a25ac81cc42cca3ff.tar.xz
Codechange: just pass the SettingDesc to SetSettingValue and remove distinction between (non)company
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp3
1 files changed, 1 insertions, 2 deletions
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);