mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 03:25:03 +08:00
Fix incorrect Metadata
-related null checks
This commit is contained in:
parent
2cb97dd599
commit
df088f96f4
@ -31,7 +31,7 @@ namespace osu.Game.Beatmaps
|
|||||||
public readonly BeatmapSetInfo BeatmapSetInfo;
|
public readonly BeatmapSetInfo BeatmapSetInfo;
|
||||||
|
|
||||||
// TODO: remove once the fallback lookup is not required (and access via `working.BeatmapInfo.Metadata` directly).
|
// TODO: remove once the fallback lookup is not required (and access via `working.BeatmapInfo.Metadata` directly).
|
||||||
public BeatmapMetadata Metadata => BeatmapInfo.Metadata ?? BeatmapSetInfo?.Metadata ?? new BeatmapMetadata();
|
public BeatmapMetadata Metadata => BeatmapInfo.Metadata;
|
||||||
|
|
||||||
public Waveform Waveform => waveform.Value;
|
public Waveform Waveform => waveform.Value;
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ namespace osu.Game.Beatmaps
|
|||||||
this.audioManager = audioManager;
|
this.audioManager = audioManager;
|
||||||
|
|
||||||
BeatmapInfo = beatmapInfo;
|
BeatmapInfo = beatmapInfo;
|
||||||
BeatmapSetInfo = beatmapInfo.BeatmapSet;
|
BeatmapSetInfo = beatmapInfo.BeatmapSet ?? new BeatmapSetInfo();
|
||||||
|
|
||||||
waveform = new Lazy<Waveform>(GetWaveform);
|
waveform = new Lazy<Waveform>(GetWaveform);
|
||||||
storyboard = new Lazy<Storyboard>(GetStoryboard);
|
storyboard = new Lazy<Storyboard>(GetStoryboard);
|
||||||
|
Loading…
Reference in New Issue
Block a user