We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4146df commit d9acdbdCopy full SHA for d9acdbd
1 file changed
libs/s25main/ingameWindows/iwAddons.cpp
@@ -148,7 +148,7 @@ void iwAddons::UpdateView(const AddonGroup selection)
148
for(unsigned i = 0; i < ggs.getNumAddons(); ++i)
149
{
150
const Addon* addon = ggs.getAddon(i);
151
- const bool isVisible = (addon->getGroups() & selection) != AddonGroup(0);
+ const bool isVisible = bitset::any(addon->getGroups(), selection);
152
auto* group = GetCtrl<ctrlGroup>(ID_grpAddonsStart + i);
153
154
// Don't show addon's gui if addon is beyond selected group or is beyond current page scope
0 commit comments