1
0
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:
DrabWeb 2017-09-21 14:46:51 -03:00
parent cb4818e84e
commit 46af17f00c

View File

@ -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();
}
},
});