From 6ac00e89615838154607319bdff428f778bdd432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 31 Aug 2025 16:19:57 +0200 Subject: fix(stats): another index out of range --- commands/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/stats.go b/commands/stats.go index 3422e2a..3d487d3 100644 --- a/commands/stats.go +++ b/commands/stats.go @@ -159,7 +159,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{ + pts[int64(days)+t] = plotter.XY{ // because t <= 0 X: float64(t), Y: float64(raw.XP), } -- cgit v1.2.3