Skip to content

Commit 2b80a44

Browse files
committed
Disallow comparison of Bitfields
1 parent 91b77aa commit 2b80a44

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libs/s25main/ingameWindows/iwAddons.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void iwAddons::UpdateView(const AddonGroup selection)
148148
for(unsigned i = 0; i < ggs.getNumAddons(); ++i)
149149
{
150150
const Addon* addon = ggs.getAddon(i);
151-
const bool isVisible = (addon->getGroups() & selection) != AddonGroup(0);
151+
const bool isVisible = bitset::any(addon->getGroups(), selection);
152152
auto* group = GetCtrl<ctrlGroup>(ID_grpAddonsStart + i);
153153

154154
// Don't show addon's gui if addon is beyond selected group or is beyond current page scope

0 commit comments

Comments
 (0)