1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 03:02:54 +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 => OnLoadComplete = d =>
{ {
loading = false; if (d is AudioLoadWrapper)
{
loading = false;
preview = (d as AudioLoadWrapper).Preview; preview = ((AudioLoadWrapper)d).Preview;
Playing = Playing; Playing = Playing;
updatePlayingState(); updatePlayingState();
}
}, },
}); });