triggerbox: remove unused local variable

This commit is contained in:
Paul Davis 2021-12-24 14:11:43 -07:00
parent 4d15bf9f18
commit 7afc8f7a31

View file

@ -2547,17 +2547,13 @@ TriggerBox::determine_next_trigger (uint32_t current)
* random number and the probability setting)
*/
int which_follow_action = 0;
int r = _pcg.rand (100); // 0 .. 99
Trigger::FollowAction fa;
if (r >= all_triggers[current]->follow_action_probability()) {
fa = all_triggers[current]->follow_action (0);
which_follow_action = 0;
} else {
fa = all_triggers[current]->follow_action (1);
which_follow_action = 1;
}
/* first switch: deal with the "special" cases where we either do