1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 12:00:05 +08:00

Actually throw error instead of weirdly using white

This commit is contained in:
Bartłomiej Dach
2025-10-10 12:31:56 +02:00
Unverified
parent 8439e6ec6c
commit c5e17f5f0f
@@ -147,7 +147,7 @@ namespace osu.Game.Screens.SelectV2
var group = (RankedStatusGroupDefinition)Item.Model;
BeatmapOnlineStatus status = group.Status;
statusColour = OsuColour.ForBeatmapSetOnlineStatus(status) ?? Color4.White;
statusColour = OsuColour.ForBeatmapSetOnlineStatus(status) ?? throw new ArgumentOutOfRangeException(nameof(status), status, null);
switch (status)
{