From 85b8480e46e37eac8c5b9ca7cdd6e410bcbf3101 Mon Sep 17 00:00:00 2001
From: nil <25884226+voidstar0@users.noreply.github.com>
Date: Sun, 1 Feb 2026 10:42:49 -0500
Subject: [PATCH] Fix two mod presets having key binding of `1` (#36563)
Fixes #36562
Currently there exists a bug where the mod preset hotkeys will wrap
outside of the intended bounds.
Fix is making sure the preset index is < 10
Before:
After:
---
osu.Game/Overlays/Mods/ModPresetColumn.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/osu.Game/Overlays/Mods/ModPresetColumn.cs b/osu.Game/Overlays/Mods/ModPresetColumn.cs
index cc6d5c6106..68c802ec4f 100644
--- a/osu.Game/Overlays/Mods/ModPresetColumn.cs
+++ b/osu.Game/Overlays/Mods/ModPresetColumn.cs
@@ -92,7 +92,7 @@ namespace osu.Game.Overlays.Mods
panels.Add(new ModPresetPanel(preset.ToLive(realm))
{
- Index = i <= 10 ? (i + 1) % 10 : null,
+ Index = i < 10 ? (i + 1) % 10 : null,
Shear = Vector2.Zero
});
}