diff --git a/src/plugins/score-plugin-avnd/Crousti/Executor.hpp b/src/plugins/score-plugin-avnd/Crousti/Executor.hpp index 192226e884..f084ed053f 100644 --- a/src/plugins/score-plugin-avnd/Crousti/Executor.hpp +++ b/src/plugins/score-plugin-avnd/Crousti/Executor.hpp @@ -197,8 +197,9 @@ struct ApplyEngineControlChangeToUI template void operator()(auto& field, avnd::predicate_index, avnd::field_index) { - auto inlet = safe_cast(modelPort(element.inlets(), NField)); - inlet->setExecutionValue(oscr::to_ossia_value(field, field.value)); + if(auto p = modelPort(element.inlets(), NField)) + if(auto inlet = dynamic_cast(p)) + inlet->setExecutionValue(oscr::to_ossia_value(field, field.value)); } };