fix build on clang

This commit is contained in:
HJfod 2024-04-29 17:12:15 +03:00
parent 8fabdf545e
commit 82d86782fb

View file

@ -148,7 +148,7 @@ void FiltersPopup::onLoadTags(typename server::ServerRequest<std::unordered_set<
void FiltersPopup::onToggle(CCObject* sender) {
auto toggle = static_cast<CCMenuItemToggler*>(sender);
auto enabled = static_cast<bool(*)(ModListSource*)>(toggle->getUserData())(m_source);
auto enabled = reinterpret_cast<bool(*)(ModListSource*)>(toggle->getUserData())(m_source);
toggle->toggle(enabled);
}
void FiltersPopup::updateTags() {