fix android build

This commit is contained in:
HJfod 2024-09-05 12:08:09 +03:00
parent 741bc93a3b
commit 63fa437386

View file

@ -562,7 +562,7 @@ namespace geode {
using Ty = typename SettingTypeForValueType<T>::SettingType; using Ty = typename SettingTypeForValueType<T>::SettingType;
return new EventListener( return new EventListener(
[callback = std::move(callback)](std::shared_ptr<SettingV3> setting) { [callback = std::move(callback)](std::shared_ptr<SettingV3> setting) {
if (auto ty = typeinfo_pointer_cast<Ty>(setting)) { if (auto ty = geode::cast::typeinfo_pointer_cast<Ty>(setting)) {
callback(ty->getValue()); callback(ty->getValue());
} }
}, },