From 01b15115fe165bd694971b0908bb08441675b99e Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 9 Sep 2019 16:53:14 -0500 Subject: fix typo in is_slot_early --- src/dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dc.c b/src/dc.c index 87e6480..21eab23 100644 --- a/src/dc.c +++ b/src/dc.c @@ -724,7 +724,7 @@ int is_slot_early(event *ev, int flasher_pmt_id) if (i/32 == flasher_pmt_id/32) { /* This hit is in the same slot as the potential flasher. */ - t_slot[n_slot++] += ev->pmt_hits[i].ept; + t_slot[n_slot++] = ev->pmt_hits[i].ept; continue; } @@ -742,7 +742,7 @@ int is_slot_early(event *ev, int flasher_pmt_id) distance = NORM(pmt_dir); if (distance < 400.0) { - t_nearby[n_nearby++] += ev->pmt_hits[i].ept; + t_nearby[n_nearby++] = ev->pmt_hits[i].ept; continue; } } -- cgit