From 4f8be5a6c33a95e7d6a8727efe313a53c90f3f2b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 18 Dec 2021 17:38:18 -0700 Subject: [PATCH] triggerbox: amend previous commit that failed to notice 2 uses of which_follow_action --- libs/ardour/triggerbox.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index f3424ad6ea..9f8e9801ee 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -2337,6 +2337,7 @@ TriggerBox::determine_next_trigger (uint64_t current) */ int which_follow_action = 0; + int r = _pcg.rand (100); // 0 .. 99 Trigger::FollowAction fa; @@ -2371,7 +2372,7 @@ TriggerBox::determine_next_trigger (uint64_t current) /* second switch: handle the "real" follow actions */ - switch (all_triggers[current]->follow_action (which_follow_action)) { + switch (fa) { case Trigger::None: return -1;