aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-09-09 16:53:14 -0500
committertlatorre <tlatorre@uchicago.edu>2019-09-09 16:53:14 -0500
commit01b15115fe165bd694971b0908bb08441675b99e (patch)
treed5f818f17cbd11ee68c28b6ef8fe8287cfb85b57 /src
parentbaa181a0a54e2e55006cadc4fae20276cd695ec0 (diff)
downloadsddm-01b15115fe165bd694971b0908bb08441675b99e.tar.gz
sddm-01b15115fe165bd694971b0908bb08441675b99e.tar.bz2
sddm-01b15115fe165bd694971b0908bb08441675b99e.zip
fix typo in is_slot_early
Diffstat (limited to 'src')
-rw-r--r--src/dc.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}