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/fios_gui.cpp | |
parent | 357af686dc5e0a0085da5c42639abe83caebe6c3 (diff) | |
download | openttd-281a65b3e17310d07458652a3f6cba55aff59dc0.tar.xz |
Cleanup: simplify some boolean expressions
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 2d33875f6..c0551701e 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -868,7 +868,7 @@ public: this->fios_items_shown[i] = this->string_filter.GetState(); if (this->fios_items_shown[i]) items_shown_count++; - if (&(this->fios_items[i]) == this->selected && this->fios_items_shown[i] == false) { + if (&(this->fios_items[i]) == this->selected && !this->fios_items_shown[i]) { /* The selected element has been filtered out */ this->selected = nullptr; this->OnInvalidateData(SLIWD_SELECTION_CHANGES); |