summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/measurements.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/measurements.cpp b/src/measurements.cpp
index 324313c..360b825 100644
--- a/src/measurements.cpp
+++ b/src/measurements.cpp
@@ -255,7 +255,7 @@ void ma::bond_broken(const network& net, const current_info& cur, unsigned i) {
avalanches_trunc++;
}
}
- Sa[avalanches_trunc]++;
+ Sa[avalanches_trunc - 1]++;
autocorrelation(Mx, My, Caa, forward_plan, fftw_forward_in, fftw_forward_out, reverse_plan, fftw_reverse_in, fftw_reverse_out);