13
0

triggerbox: amend previous commit that failed to notice 2 uses of which_follow_action

This commit is contained in:
Paul Davis 2021-12-18 17:38:18 -07:00
parent b89b452c8d
commit 4f8be5a6c3

View File

@ -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;