mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 18:27:18 +08:00
Add a null check to prevent NRE when playing the "no video" version of a beatmap.
This commit is contained in:
parent
a141e2e8b7
commit
01c9112f82
@ -55,6 +55,8 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
if (videoSprite == null) return;
|
||||||
|
|
||||||
using (videoSprite.BeginAbsoluteSequence(0))
|
using (videoSprite.BeginAbsoluteSequence(0))
|
||||||
videoSprite.FadeIn(500);
|
videoSprite.FadeIn(500);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user