mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 11:27:24 +08:00
Only set StoryBoardFile once
This commit is contained in:
parent
eff66a1da6
commit
1e901a1604
@ -203,7 +203,6 @@ namespace osu.Game.Database
|
|||||||
{
|
{
|
||||||
string[] mapNames = reader.BeatmapFilenames;
|
string[] mapNames = reader.BeatmapFilenames;
|
||||||
foreach (var name in mapNames)
|
foreach (var name in mapNames)
|
||||||
{
|
|
||||||
using (var stream = new StreamReader(reader.GetStream(name)))
|
using (var stream = new StreamReader(reader.GetStream(name)))
|
||||||
{
|
{
|
||||||
var decoder = BeatmapDecoder.GetDecoder(stream);
|
var decoder = BeatmapDecoder.GetDecoder(stream);
|
||||||
@ -215,8 +214,7 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
beatmapSet.Beatmaps.Add(beatmap.BeatmapInfo);
|
beatmapSet.Beatmaps.Add(beatmap.BeatmapInfo);
|
||||||
}
|
}
|
||||||
beatmapSet.StoryboardFile = reader.StoryboardFilename;
|
beatmapSet.StoryboardFile = reader.StoryboardFilename;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return beatmapSet;
|
return beatmapSet;
|
||||||
|
Loading…
Reference in New Issue
Block a user