mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Avoid LogoVisualisation accessing the track before it's loaded
This commit is contained in:
parent
a2fc5b67ec
commit
66f72baa39
@ -85,7 +85,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private void updateAmplitudes()
|
||||
{
|
||||
var track = beatmap.Value.Track;
|
||||
var track = beatmap.Value.TrackLoaded ? beatmap.Value.Track : null;
|
||||
|
||||
float[] temporalAmplitudes = track?.CurrentAmplitudes.FrequencyAmplitudes ?? new float[256];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user