Commit 913a5a67f0e1fdfb7d9a5c9e4f1a6b069390abea

Authored by Domenico Tiziani
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,7 +301,7 @@ void ctbin::run(void)
301 // and set weights in the first slot of the m_counts and 301 // and set weights in the first slot of the m_counts and
302 // m_weights arrays 302 // m_weights arrays
303 if (m_stack) { 303 if (m_stack) {
304 - if (i == 0) { 304 + if (m_counts[0].is_empty()) {
305 m_counts[0] = counts; 305 m_counts[0] = counts;
306 m_weights[0] = weights; 306 m_weights[0] = weights;
307 } 307 }