mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:43:21 +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()
|
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];
|
float[] temporalAmplitudes = track?.CurrentAmplitudes.FrequencyAmplitudes ?? new float[256];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user