Fix state features array
authorDavid Robillard <d@drobilla.net>
Mon, 1 Aug 2016 02:48:15 +0000 (22:48 -0400)
committerDavid Robillard <d@drobilla.net>
Mon, 1 Aug 2016 02:48:15 +0000 (22:48 -0400)
libs/ardour/lv2_plugin.cc

index b0c67bf0343fa317c808a9caed66a99eac360f28..c1f3c06b9a75550b41be505746a6c5857a56c83b 100644 (file)
@@ -1340,7 +1340,7 @@ LV2Plugin::load_preset(PresetRecord r)
        LV2_Worker_Schedule schedule            = { _state_worker, work_schedule };
        const LV2_Feature   state_sched_feature = { LV2_WORKER__schedule, &schedule };
        if (_state_worker) {
-               state_features[1] = &state_sched_feature;
+               state_features[0] = &state_sched_feature;
        }
 
        if (state) {