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:
parent
cb4818e84e
commit
46af17f00c
@ -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();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user