Merge pull request #10093 from peppy/fix-crash-on-multiple-saves

Fix editor crash on saving more than once
This commit is contained in:
Dean Herbert 2020-09-09 15:28:40 +09:00 committed by GitHub
commit b79e9791c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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())
{