1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 04:49:34 +08:00

Fix visual test crash when BeatmapInfo doesn't have a BeatmapSet.

This commit is contained in:
Damnae 2017-09-15 15:12:16 +02:00
parent d9bde5ad5a
commit 5f6b300a3a

View File

@ -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;