diff --git a/libs/ardour/lua_api.cc b/libs/ardour/lua_api.cc index a724aca926..0bbeaf5b2b 100644 --- a/libs/ardour/lua_api.cc +++ b/libs/ardour/lua_api.cc @@ -244,7 +244,7 @@ ARDOUR::LuaAPI::get_processor_param (boost::shared_ptr proc, uint32_t { ok=false; boost::shared_ptr pi = boost::dynamic_pointer_cast (proc); - if (!pi) { return false; } + if (!pi) { ok = false; return 0;} return get_plugin_insert_param (pi, which, ok); }