mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Fix BeatmapInfo
file lookup not handling the case where no files exist
Quite common for test scenes.
This commit is contained in:
@ -38,7 +38,7 @@ namespace osu.Game.Beatmaps
|
||||
public BeatmapSetInfo? BeatmapSet { get; set; }
|
||||
|
||||
[Ignored]
|
||||
public RealmNamedFileUsage? File => BeatmapSet?.Files.First(f => f.File.Hash == Hash);
|
||||
public RealmNamedFileUsage? File => BeatmapSet?.Files.FirstOrDefault(f => f.File.Hash == Hash);
|
||||
|
||||
public BeatmapOnlineStatus Status
|
||||
{
|
||||
|
Reference in New Issue
Block a user