diff options
author | Rubidium <rubidium@openttd.org> | 2021-06-16 23:21:21 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-17 16:18:30 +0200 |
commit | 281a65b3e17310d07458652a3f6cba55aff59dc0 (patch) | |
tree | e3f06df00a9f8fc074f863b230980f2a11b066e4 /src/settings_gui.cpp | |
parent | 357af686dc5e0a0085da5c42639abe83caebe6c3 (diff) | |
download | openttd-281a65b3e17310d07458652a3f6cba55aff59dc0.tar.xz |
Cleanup: simplify some boolean expressions
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index b17b343c7..a63448aef 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -930,8 +930,7 @@ void BaseSettingEntry::Init(byte level) bool BaseSettingEntry::IsVisible(const BaseSettingEntry *item) const { if (this->IsFiltered()) return false; - if (this == item) return true; - return false; + return this == item; } /** |