mirror of https://github.com/ppy/osu
Merge pull request #10093 from peppy/fix-crash-on-multiple-saves
Fix editor crash on saving more than once
This commit is contained in:
commit
b79e9791c3
|
@ -231,7 +231,7 @@ protected override bool CheckLocalAvailability(BeatmapSetInfo model, IQueryable<
|
|||
/// <param name="beatmapSkin">The beatmap <see cref="ISkin"/> content to write, null if to be omitted.</param>
|
||||
public void Save(BeatmapInfo info, IBeatmap beatmapContent, ISkin beatmapSkin = null)
|
||||
{
|
||||
var setInfo = QueryBeatmapSet(s => s.Beatmaps.Any(b => b.ID == info.ID));
|
||||
var setInfo = info.BeatmapSet;
|
||||
|
||||
using (var stream = new MemoryStream())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue