1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:47:52 +08:00

Only set StoryBoardFile once

This commit is contained in:
Mikal Stodal 2017-03-01 17:08:12 +01:00
parent eff66a1da6
commit 1e901a1604

View File

@ -203,7 +203,6 @@ namespace osu.Game.Database
{
string[] mapNames = reader.BeatmapFilenames;
foreach (var name in mapNames)
{
using (var stream = new StreamReader(reader.GetStream(name)))
{
var decoder = BeatmapDecoder.GetDecoder(stream);
@ -215,8 +214,7 @@ namespace osu.Game.Database
beatmapSet.Beatmaps.Add(beatmap.BeatmapInfo);
}
beatmapSet.StoryboardFile = reader.StoryboardFilename;
}
beatmapSet.StoryboardFile = reader.StoryboardFilename;
}
return beatmapSet;