diff --git a/csgo/demo_parser.go b/csgo/demo_parser.go index e4b670f..e7f1ffe 100644 --- a/csgo/demo_parser.go +++ b/csgo/demo_parser.go @@ -82,12 +82,12 @@ func (s *Sprays) Avg() (avg [][]float32) { total int ) - total++ for _, sp := range s.Sprays { for i, r2p := range sp.Spray { if i == 0 { continue } + total++ if len(avg) <= i-1 { avg = append(avg, r2p) } else {