1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 14:07: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

@ -76,11 +76,14 @@ namespace osu.Game.Overlays.OnlineBeatmapSet
{
OnLoadComplete = d =>
{
loading = false;
if (d is AudioLoadWrapper)
{
loading = false;
preview = (d as AudioLoadWrapper).Preview;
Playing = Playing;
updatePlayingState();
preview = ((AudioLoadWrapper)d).Preview;
Playing = Playing;
updatePlayingState();
}
},
});