1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 11:22:57 +08:00

Fix visible error being thrown when playing a no-video beatmap

This commit is contained in:
Dean Herbert 2020-02-16 15:06:12 +09:00
parent 268f3333bd
commit 006c52bbe5

View File

@ -74,7 +74,9 @@ namespace osu.Game.Beatmaps
try
{
return new VideoSprite(textureStore.GetStream(getPathForFile(Metadata.VideoFile)));
var stream = textureStore.GetStream(getPathForFile(Metadata.VideoFile));
return stream == null ? null : new VideoSprite(stream);
}
catch (Exception e)
{