mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 03:27:20 +08:00
Fix visual test crash when BeatmapInfo doesn't have a BeatmapSet.
This commit is contained in:
parent
d9bde5ad5a
commit
5f6b300a3a
@ -53,7 +53,7 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
get
|
||||
{
|
||||
var backgroundPath = BeatmapInfo.BeatmapSet.Metadata?.BackgroundFile?.ToLowerInvariant();
|
||||
var backgroundPath = BeatmapInfo.BeatmapSet?.Metadata?.BackgroundFile?.ToLowerInvariant();
|
||||
if (backgroundPath == null)
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user