1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 12:57:25 +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; 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);
@ -217,7 +216,6 @@ namespace osu.Game.Database
} }
beatmapSet.StoryboardFile = reader.StoryboardFilename; beatmapSet.StoryboardFile = reader.StoryboardFilename;
} }
}
return beatmapSet; return beatmapSet;
} }