From 355db490b72f51e312d599bd38c7e412cbb94691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 31 Aug 2025 16:47:01 +0200 Subject: fix(stats): index out of range again cannot be tested in debug mode --- commands/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/stats.go') diff --git a/commands/stats.go b/commands/stats.go index ccd9412..263d80c 100644 --- a/commands/stats.go +++ b/commands/stats.go @@ -164,7 +164,7 @@ func stats(s *discordgo.Session, i *discordgo.InteractionCreate, days uint, exec if !gokord.Debug { t = int64(math.Ceil(float64(t) / (24 * 60 * 60))) } - pts[int64(days)+t] = plotter.XY{ // because t <= 0 + pts[int64(days)+t-1] = plotter.XY{ // because t <= 0 X: float64(t), Y: float64(raw.XP), } -- cgit v1.2.3