Commit 913a5a67f0e1fdfb7d9a5c9e4f1a6b069390abea
1 parent
2c8b11fa
Fix concurrent filling of counts cube
Showing
1 changed file
with
1 additions
and
1 deletions
src/ctbin/ctbin.cpp
| ... | ... | @@ -301,7 +301,7 @@ void ctbin::run(void) |
| 301 | 301 | // and set weights in the first slot of the m_counts and |
| 302 | 302 | // m_weights arrays |
| 303 | 303 | if (m_stack) { |
| 304 | - if (i == 0) { | |
| 304 | + if (m_counts[0].is_empty()) { | |
| 305 | 305 | m_counts[0] = counts; |
| 306 | 306 | m_weights[0] = weights; |
| 307 | 307 | } | ... | ... |