mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:47:25 +08:00
Fix preview button potential null ref.
This commit is contained in:
parent
cb4818e84e
commit
46af17f00c
@ -75,12 +75,15 @@ namespace osu.Game.Overlays.OnlineBeatmapSet
|
||||
audioWrapper.Child = new AsyncLoadWrapper(new AudioLoadWrapper(BeatmapSet)
|
||||
{
|
||||
OnLoadComplete = d =>
|
||||
{
|
||||
if (d is AudioLoadWrapper)
|
||||
{
|
||||
loading = false;
|
||||
|
||||
preview = (d as AudioLoadWrapper).Preview;
|
||||
preview = ((AudioLoadWrapper)d).Preview;
|
||||
Playing = Playing;
|
||||
updatePlayingState();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user